You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to make custom buttons to rotate left, tight, top, bottom, in a continuous way (as long as the button is pressed the image keep rotating).
The problem is that the OnClick property of the custom button does not pass the element (the button) to another function, so I can't detect when the mouse is released from the button.
Is there a way to detect "OnMouseUp" (or something like that) from custom button?
The text was updated successfully, but these errors were encountered:
if would be awesome if could propose such buttons in the core. Actually all the base logic is already implemented in AbstractZoomButton, it should be simple to create an AbstractMaintainButton used for both zoom and navigation buttons
Many thanks @mistic100 , as usual!
Unfortunately actually I don't have time to implement this button in the core, but I'll do.
For now I've just ended up with a dirty solution: viewer.navbar.container.addEventListener('mouseup', function () { console.log("MOUSE UP") });
Hello,
I'm trying to make custom buttons to rotate left, tight, top, bottom, in a continuous way (as long as the button is pressed the image keep rotating).
The problem is that the OnClick property of the custom button does not pass the element (the button) to another function, so I can't detect when the mouse is released from the button.
Is there a way to detect "OnMouseUp" (or something like that) from custom button?
The text was updated successfully, but these errors were encountered: