Commit Graph

162 Commits

Author SHA1 Message Date
Mark Salsbery
72fc528b3c removeContact only on existing tracked pointer 2021-05-04 16:55:37 -07:00
Mark Salsbery
7fbff2cc27 cleanup debug code 2021-05-03 14:02:29 -07:00
Mark Salsbery
4b4da7c4a1 Workaround for WebKit Pointer Event Implicit Capture Bug #1962 2021-05-03 13:43:47 -07:00
Mark Salsbery
00187cb5a1 Fixed legacy mouse and touch event handling 2021-05-03 11:38:20 -07:00
Mark Salsbery
870d9df779 Code cleanup, better scrollHandler handling in Viewer 2021-03-16 19:47:08 -07:00
Mark Salsbery
23d00c92c1 Added preventDefault option to MouseTracker handlers: scrollHandler, keyDownHandler, keyUpHandler, keyHandler 2021-03-16 19:35:22 -07:00
Ian Gilman
84b0aea54b Merge branch 'master' into ms-preventDefaultAction 2021-03-12 11:44:10 -08:00
Mark Salsbery
0195c5a5ec preventDefaultAction - removed from MouseTracker, implemented for canvas-pinch and canvas-scroll events 2021-03-11 16:09:57 -08:00
Mark Salsbery
83788cbb75 key down/up event disposition defaults 2021-03-11 16:07:24 -08:00
Mark Salsbery
3b2d5e640c removed some redundant code 2021-03-10 16:10:28 -08:00
Mark Salsbery
d7d7fda4af Fixed bug preventing keypress events from firing on MouseTrackers with onKeyDown handlers 2021-03-10 15:58:27 -08:00
Mark Salsbery
2bbfa97063 MouseTracker preProcessEvent on key, focus, blur events 2021-03-10 14:53:33 -08:00
Mark Salsbery
c38188927e Added preventDefault option to MouseTracker.contextMenuHandler and Viewer 'canvas-contextmenu' event args 2021-03-10 13:45:15 -08:00
Mark Salsbery
ac97d5ff3c MouseTracker minor code formatting fixes 2021-03-07 14:24:32 -08:00
Mark Salsbery
a94841cf97 MouseTracker documentation update 2021-03-05 18:50:40 -08:00
Mark Salsbery
631881cb8a Mousetracker documentation update 2021-03-05 18:39:31 -08:00
Mark Salsbery
6b7fcbdc07 MouseTracker isEmulated documentation update 2021-03-05 18:06:26 -08:00
Mark Salsbery
5674cf47ad Per #1863, dropped support for Internet Explorer < 11 2021-03-04 15:48:13 -08:00
Mark Salsbery
6a1a6275ed MouseTracker: Allow pre-processing of click and dblclick events 2021-03-02 10:29:44 -08:00
Mark Salsbery
72fe7a9025 Show deprecation warning in console for MouseTracker.exitHandler 2021-02-10 08:32:00 -08:00
Mark Salsbery
4b40400cd3 MouseTracker contextmenu enabled by default 2021-02-10 07:29:36 -08:00
Mark Salsbery
73dc6895f1 Removed commented legacy fix code (#1872) 2021-02-09 16:28:42 -08:00
Mark Salsbery
c969f85239 contextmenu 2020-08-25 11:46:35 -07:00
Mark Salsbery
35b1dcf362 Better setPointerCapture/releasePointerCapture exception handling 2020-08-25 09:11:00 -07:00
Mark Salsbery
5360e65ee9 setPointerCapture/releasePointerCapture exception handling 2020-08-25 08:51:00 -07:00
Mark Salsbery
c22e624a3d isPrimary handling 2020-08-20 16:56:57 -07:00
Mark Salsbery
e7bc65c0af Remove stopImmediatePropagation stub for implementation in future release 2020-08-18 20:03:38 -07:00
Mark Salsbery
6b500f1ff2 docs update 2020-08-13 17:21:32 -07:00
Mark Salsbery
8fc83c696a Improved releasing of tracked pointers on destroy()/stopTracking() (#1346) 2020-08-13 16:43:49 -07:00
Mark Salsbery
5a9874e4fa changelog update 2020-08-13 10:09:17 -07:00
Mark Salsbery
e74d83f104 New preProcessEvent event 2020-08-12 21:22:48 -07:00
Mark Salsbery
e7a62c2717 Enhanced pointer capture implementation, IE bug workarounds 2020-07-30 21:08:02 -07:00
Mark Salsbery
2d4a723854 MouseTracker enhancements, improved IE <=10 support 2020-07-25 18:30:06 -07:00
Mark Salsbery
d2bb480363 Browser sniffing and pointer events fixes and enhancements 2020-07-24 20:05:39 -07:00
Mark Salsbery
c4351f64e8 stricter linting 2020-06-25 16:01:14 -07:00
Ian Gilman
c01887f3e3 Updated NPM packages 2019-12-30 10:46:44 -08:00
SangYeob Yu
4a3f79e305
prevent multi-points errors on ipad 2019-12-18 16:48:15 +09:00
SangYeob Yu
831c06c499
fix iPadOS 13 multi-touch issue 2019-12-10 16:29:20 +09:00
Ian Gilman
ca4550d76e Doc comment fixes 2017-07-18 16:22:26 -07:00
Ian Gilman
28f9e9e35e Merge pull request #1244 from LarissaSmith/master
Fix more issues with tracking multiple pointers.
2017-07-12 16:00:38 -07:00
larissasmith
0bded9f8e1 Correct docs and add check for contact count. 2017-07-12 11:21:52 -06:00
Jose
aabfa32595 Merge conflict resolved 2017-07-10 23:01:04 +02:00
larissasmith
c3a65bab38 Replace filter with a for loop. 2017-07-10 13:54:20 -06:00
larissasmith
d9bda20e59 Fix more issues with tracking multiple pointers. 2017-07-07 16:50:03 -06:00
larissasmith
ad206a7738 Add reference to github discussion on mouse tracking bug fix. 2017-06-20 16:35:00 -06:00
larissasmith
319d27f0c0 Fix image stuck to mouse when right-clicking and left-clicking simultaneously.
Mouseup and mousedown events are lost when two buttons are pressed at the same time. Pressing buttons in the order left-button down, right-button down (ignored), left-button up (ignored), right-button up was leaving drag state active.
2017-06-16 14:05:35 -06:00
Jose
70bdc8839e Some issues solved 2017-02-20 20:23:25 +01:00
Jose
d5b62aabcd Patch to fix issue #697, also contains improvements when panning under certain constrains 2017-02-19 17:36:53 +01:00
Antoine Vandecreme
de25b68b43 Add eslint and hound 2017-01-16 21:41:07 +01:00
Daniel Zimmermann
c25bf0a239 Correctly handle touch PointerEvents
`onPointerDown/Up` may call `capture/releasePointer`
with `"touch"` as the pointerType, which would result
in a bug as `touchCount` would be `undefined`.

`capture/releasePointer` should just default to a
count of `1` if not specified. This properly retains
the existing behaviour for non-TouchEvent handling.
2016-05-16 06:26:52 +10:00