Commit Graph

39 Commits

Author SHA1 Message Date
tsauerwein
b693ddf56e Remove assignments inside expression 2014-03-14 10:16:27 +01:00
tsauerwein
73c33e58e9 Remove unused constant NEW_MOUSE_EVENT 2014-03-14 10:16:27 +01:00
tsauerwein
77aa29e6ee Remove blank lines 2014-03-14 10:16:27 +01:00
tsauerwein
6933023441 Remove leading whitespace 2014-03-14 10:16:27 +01:00
Tom Payne
df71854561 Merge ol.pointer.CLONE_PROPS and CLONE_DEFAULTS into a single array 2014-03-14 10:16:27 +01:00
Frederic Junod
ee80238ed2 Use 'undefined' for undefined numbers
Conflicts:
	src/ol/pointer/touchsource.js
2014-03-14 10:16:27 +01:00
tsauerwein
18c2888987 Remove not used property TouchSource.firstXY 2014-03-14 10:16:27 +01:00
Frederic Junod
f5b15f737f Move DEDUP_TIMEOUT and CLICK_COUNT_TIMEOUT constants out of the instance 2014-03-14 10:16:27 +01:00
tsauerwein
fcb52d2361 Remove unnecessary call to goog.bind 2014-03-14 10:16:27 +01:00
Frederic Junod
028a183d11 Pass the mapping object to the ol.pointer.EventSource constructor
Conflicts:
	src/ol/pointer/mssource.js
2014-03-14 10:16:27 +01:00
tsauerwein
4468d96a13 Read pointerId/pointerType from browser event
and not from the Google Closure event.
2014-03-14 10:16:27 +01:00
Frederic Junod
a13ade90ad Simplify pointerType string conversion 2014-03-14 10:16:27 +01:00
Frederic Junod
08b297e628 Use goog.object.get instead of ol.pointer.PointerEvent#getValue_ 2014-03-14 10:16:27 +01:00
tsauerwein
6e2f0dce76 Work on a copy of changedTouches
On Opera Mobile 11.10 it is not possible to
directly work on `changedTouches` (e.g. map
fails). That is why a copy is made first.
2014-03-14 10:16:27 +01:00
Frederic Junod
b2e946794f Set ol.pointer.*Source#mapping_ properties to private 2014-03-14 10:16:27 +01:00
Frederic Junod
a916e2500b Add ol.pointer.TouchSource.POINTER_TYPE constant 2014-03-14 10:16:26 +01:00
Frederic Junod
a74ad0e459 Remove ol.pointer.*Source#events properties 2014-03-14 10:16:26 +01:00
Frederic Junod
6b4b62dd3a Use goog.object.get instead of ol.pointer.PointerEvent#getValueOr_ 2014-03-14 10:16:26 +01:00
tsauerwein
b17957b543 Fix support for legacy IE 2014-03-14 10:16:26 +01:00
ahocevar
18ba2f8be6 Fixing API docs 2014-03-14 10:16:26 +01:00
tsauerwein
fa434bedda use anonymous function 2014-03-14 10:16:26 +01:00
tsauerwein
bc31d42964 removes dead code 2014-03-14 10:16:26 +01:00
tsauerwein
bfc95451e8 fixes preventDefault() on IE11 2014-03-14 10:16:26 +01:00
tsauerwein
122dac857f PointerEventHandler test 2014-03-14 10:16:26 +01:00
tsauerwein
eca6846dac move checks for pointer support into browserfeature module 2014-03-14 10:16:26 +01:00
tsauerwein
b52f79340d use separate pointer event handler for document when dragging 2014-03-14 10:16:26 +01:00
tsauerwein
2e4badb7f3 when copying properties for touch events, make sure that those properties that might be different for each Touch object are not copied from the touch event 2014-03-14 10:16:26 +01:00
tsauerwein
7fbd11154b refactoring, type annotations 2014-03-14 10:16:26 +01:00
tsauerwein
d772c95ccf makes PointerEvent a plain closure class, instead of trying to mimic a mouse event, which was required for the polyfill 2014-03-14 10:16:25 +01:00
tsauerwein
7c8713f79d add comment about an open bug with native Android browser (4.1.2) when the page is scrolled 2014-03-14 10:16:25 +01:00
tsauerwein
e1f4410ad4 removes not needed WeakMap struct 2014-03-14 10:16:25 +01:00
tsauerwein
c4c1eb7d45 allow dragging for mouse/ms/native when pointer is outside map viewport element 2014-03-14 10:16:25 +01:00
tsauerwein
ee2174785f copy properties for pointer event from internal browser event, not from google.event.BrowserEvent 2014-03-14 10:16:25 +01:00
tsauerwein
37ab50e2e4 use goog.bind, safari does not support the native bind 2014-03-14 10:16:25 +01:00
tsauerwein
492549642e add polymer license info 2014-03-14 10:16:25 +01:00
tsauerwein
0858f6825c source for touch events 2014-03-14 10:16:25 +01:00
tsauerwein
445ff5e05a source for native pointer events (IE11) 2014-03-14 10:16:25 +01:00
tsauerwein
df4bd7c43b source for ms pointer events (IE10) 2014-03-14 10:16:25 +01:00
tsauerwein
7140f608f8 pointer events generated by mouse events 2014-03-14 10:16:25 +01:00