Add mouse up down event support #308
base: main
Are you sure you want to change the base?
Add mouse up down event support #308
Conversation
…ent-support Switch order of mouse up/mouse down, fix slight whitespace issue
…vent-support Conflicts: lib/fastclick.js
@rowanbeentje can you sanity check+merge? |
Sanity checks - seems fine. Going through the browsers, it seems Blackberry OS 2 will have a problem with this; there, mousedown is fired before touchend, so I think we'd get doubled-up events. Global usage is rather small, and OS 10 fixed the problem - worth adding a hack, or do we see this as the overall big fix it is anyway? :) |
Curses. Blackberry OS2. Is that a playbook? |
Yeah - the PlayBook and possibly the not-so-popular phones... |
Mousedown is incorrectly triggered after blur. My use case is an autosuggestion drop-down. Proof of concept code:
|
@MattMenchaca is that in relation to this branch? |
I figured that this was the place to address it since it is related to the mousedown functionality this PR intends to support. Here are some practical examples of this issue
|
@MattMenchaca isn't this also the case with the It seems it boils down to a trade-off between that some libraries require I'd vote to add |
It's a pity that this hasn't been integrated yet. |
please merge this... |
Yes, please merge this, as I also need this. Fastclick breaks some other components, i.e. typeahead and select2 when active without that. |
Please merge this, i also need this for our tracking library which relies on "mousedown". |
Please merge this |
FastClick also breaks the Button component of react-toolbox, which also relies on onMouseUp events. |
Please merge yesterday. |
This fixed my issue with fastclick and select2, would like to see this merged in too. |
Please merge this, it fixed fastclick for my react-quill / quilljs rich text editor. |
@rowanbeentje Are we still aiming to support BlackBerry OS2? |
Replacement pr for #289