-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Describe the bug
If I use the soft touch of my Macbook trackpad and do not push it down physically in order to click the image to zoom in or out (maximizeOnClick and minimizeOnClick), it sometimes works and sometimes doesn't. This happens because the event.buttons property of the mouseDown-Event is randomly set to 0 or 1. As you check for it to be > 0, it randomly just does nothing.
It would be cool if you could remove the check for event.buttons > 0 from the handleMouseDown method for it to work on Macbooks again.
To Reproduce
Steps to reproduce the behavior:
- activate shouldMaximizeOnClick and/or shouldMinimizeOnClick
- Tap on the image using soft touch of trackpad multiple times
- randomly it will do what you expect it to do or just do nothing without an error
Expected behavior
maximize and minimize work with trackpad
Desktop (please complete the following information):
- OS: iOS 12.6
- Browser Chrome
- Version 108.0.5359.94
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed