Increase tolerance for discarding erroneous mouse pointenter events on touch devices

This commit is contained in:
Quincy Morgan
2020-06-12 13:06:29 -04:00
parent 1e68917e2a
commit a1e6a1acd9
+1 -1
View File
@@ -161,7 +161,7 @@ export function uiPopover(klass) {
// only allow hover behavior for mouse input
return;
} else if (_lastNonMouseEnterTime &&
d3_event.timeStamp - _lastNonMouseEnterTime < 800) {
d3_event.timeStamp - _lastNonMouseEnterTime < 1500) {
// HACK: iOS 13.4 sends an erroneous `mouse` type pointerenter
// event for non-mouse interactions right after sending
// the correct type pointerenter event. Workaround by discarding