Ng-mousedown / up mobile compability

Tags: #<Tag:0x00007f61701d12e8> #<Tag:0x00007f61701d11f8>


I’ve found a cross platform issue that I can’t find a solution to.
I’m using ng-mouseup / ng-mousedown directives in HabPanel, for sending impulse for blind control, shorter one activates blinds, longer impulse stops the command. All works great from computer, while on mobile it has a weird behavior, and doesn’t work as intended, sometimes pressing the button it sends ON command, but doesn’t send off.
I’ve also added scrolling prevention when interacting with buttons, as I noticed it cancels the action if you scroll, sadly with no success.

id=main ng-mousedown="sendCmd('Zal1close', 'ON')" ng-mouseup="sendCmd('Zal1close', 'OFF')"