It seems to me that onmouseup() is fired shortly after onmousedown() even if one's finger remains on the screen (as though the event is emulating a simple click). After onmouseup(), onmousemove() events can continue to occur, which shouldn't happen on a touch-screen device.
This makes drag-and-drop or swipe gestures rather kludgy to implement. It would be useful if onmouseup() fired when one's finger was uplifted.
The relevant documentation is here.
Answered! Go to the Best Answer.
That's a workaround I use. It's pretty crappy but it sort of works. There is definitely a bug in the onmouseup and onmousedown Touch Events where both fire simultaneously regardless of which way you swipe. Hopefully that gets fixed soon.
That's a workaround I use. It's pretty crappy but it sort of works. There is definitely a bug in the onmouseup and onmousedown Touch Events where both fire simultaneously regardless of which way you swipe. Hopefully that gets fixed soon.
Thanks for the confirmation. For my purposes, I had to use a timeout to see when onmousemove() events stopped happening. This means reduced responsiveness.
Your solution would avoid such unresponsiveness.
Have the same issue and no workaround (so far). I need to kick off setInterval while screen is pressed and clear the interval when it's no longer pressed. Basic stuff, really annoying that it doesn't work
Best AnswerFrom discord:
"orviwan (JonFitbit):something weird, if the rect is fullscreen, there are certain parts where you can touch and the mouseup doesn't trigger immediately, other parts it does"
Orviwan has submitted an official bug report.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
The next firmware update will have a fix for this issue, and no, I don't have a specific release date yet.