What are my options when mira.multitouch gets in the way of an object I want to click with mouse?

Simon Dawes's icon

Hi all.

I want to be able to interact with a slider with mouse clicks and with Mira, but I need to know when my cursor has moved away from the slider and/or when my finger is no longer pressing the screen.

I'm relying on [hover] to report when I move my cursor away from the slider.

And I'm getting [mira.multitouch] to report when I'm no longer pressing the screen.

The issue

The slider and multitouch need to occupy the same space in my patcher, and I can only interact with whichever object is at the front.

If multitouch is in front of the slider, it reads iPad gestures but I can't click on the slider.

If the slider is in front of the multitouch, I can click on the slider but the multitouch can no longer report touch info.

Failed solution

Putting multitouch in front of the slider, then using [hover] to tell multitouch “ignoreclick $1” results in erratic behaviour from multitouch when patch is locked and I'm hovering over the multitouch.

Workable solution

Usable option for now seems to be "script bringtofront (slider || multitouch)" when I hover onto the multitouch or off of the slider respectively.

Reason for the forum post

There's a few drawbacks to my workaround but they're bearable.

It just seems convoluted.

Can anyone advise of an easier way to do this?

Cheers.