Jemt / Fit.UI

Fit.UI is a JavaScript based UI framework built on Object Oriented principles
http://fitui.org
GNU Lesser General Public License v3.0
19 stars 7 forks source link

Safari on Mac: OnMouseUp not firing in Safari when opening a select dropdown so Fit.Events.GetPointerState() returns incorrect mouse button state #163

Open FlowIT-JIT opened 2 years ago

FlowIT-JIT commented 2 years ago

Invoking Fit.Events.GetPointerState() after opening a <select> dropdown control using the mouse on Safari on Mac, will incorrectly indicate that the primary mouse button is still being held down, because Safari doesn't fire OnMouseUp once the button is released, making it impossible to detect the correct state. The state is fixed once the user clicks somewhere else in the web application.

FlowIT-JIT commented 2 years ago

Possible "fix" for Safari on Mac: Detect that MouseDown happens on a