Commit Graph

29 Commits

Author SHA1 Message Date
Tom Payne
4a8ef6a229 Use dot property access in ol.pointer.TouchSource 2014-03-23 19:59:49 +01:00
Frederic Junod
6d4552c783 Cache the result of goog.object.getCount 2014-03-20 12:38:14 +01:00
Frederic Junod
a2375d58b6 Store touch coordinates as ol.Pixel instead of goog.math.Coordinate 2014-03-20 12:38:14 +01:00
Frederic Junod
395fdf9bbf Move function declaration out of the constructor 2014-03-20 12:38:13 +01:00
tsauerwein
b2a37b8244 Remove not needed require 2014-03-14 10:16:27 +01:00
tsauerwein
41df4e0a23 Remove assertion again
When doing a double tap, the timeout id might get overridden.
2014-03-14 10:16:27 +01:00
tsauerwein
51a557efbb Replace goog.structs.Map with plain object 2014-03-14 10:16:27 +01:00
tsauerwein
68fa5fb9ce Make use of goog.array.remove 2014-03-14 10:16:27 +01:00
tsauerwein
debdc26fd2 Remove assignment inside expression 2014-03-14 10:16:27 +01:00
tsauerwein
71b424f74c Add missing require 2014-03-14 10:16:27 +01:00
tsauerwein
1a477b8f32 Assert that timeout reset ids are not overridden 2014-03-14 10:16:27 +01:00
tsauerwein
d170281354 Re-use handler 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
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
ahocevar
18ba2f8be6 Fixing API docs 2014-03-14 10:16:26 +01:00
tsauerwein
122dac857f PointerEventHandler test 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
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