Commit Graph

13293 Commits

Author SHA1 Message Date
Éric Lemoine
c8f981b38d Merge pull request #1840 from tsauerwein/pointerevents
Use pointer events
2014-03-14 11:13:24 +01:00
tsauerwein
155b9b3f86 Add comment about pointercancel listener 2014-03-14 10:16:27 +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
599de6a44a Listen also to pointerdown on overlay container 2014-03-14 10:16:27 +01:00
tsauerwein
89da5debfa Fix order of olx.interaction.* types 2014-03-14 10:16:27 +01:00
tsauerwein
7789d5eb08 Fix Google Maps example 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
8a26ac6e24 Set preventDefault in PointerEvent constructor 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
tsauerwein
e08fa37565 Use enums for pointer event types 2014-03-14 10:16:27 +01:00
tsauerwein
72d7a6e1ff Remove unused property pointerMap on NativeSource 2014-03-14 10:16:27 +01:00
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
873d47d087 Remove not needed type cast 2014-03-14 10:16:27 +01:00
tsauerwein
6933023441 Remove leading whitespace 2014-03-14 10:16:27 +01:00
Éric Lemoine
d08ab1ea78 PinchZoom interaction sets/unsets interacting hint 2014-03-14 10:16:27 +01:00
Éric Lemoine
544ceaf9f9 PinchRotate interaction sets/unsets interacting hint 2014-03-14 10:16:27 +01:00
Éric Lemoine
b5339550b7 DragPan interaction sets/unsets interacting hint 2014-03-14 10:16:27 +01:00
Éric Lemoine
d1ef5b0f5b Remove view hint handling from pointer interaction 2014-03-14 10:16:27 +01:00
Éric Lemoine
35b31730b5 Change a property from private to protected 2014-03-14 10:16:27 +01:00
Éric Lemoine
b939ca24d7 Use a more explicit variable name 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
tsauerwein
5a358918e1 Rename interactions
The idea behind the naming scheme is that for example
for `DragRotate`, `Rotate` is the action and `Drag` the
gesture that issues the action.
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
tsauerwein
52839533e6 Fix typo in POINTERDRAG constant 2014-03-14 10:16:27 +01:00
ahocevar
e28faa3a2b Removing code for functionality now handled by #1834 2014-03-14 10:16:27 +01:00
tsauerwein
6742e6a03a Fix type annotation 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
aee76c989d Change ol.BrowserFeature.HAS_POINTER feature detection
Because navigator.pointerEnabled will not be part of the final spec.
See https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890
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
Frederic Junod
cbb875e504 Add extern for Navigator.prototype.pointerEnabled 2014-03-14 10:16:26 +01:00
tsauerwein
51d7cb2820 Make goog.events.listen return proper listener key
When goog.events.listen receives an array of event types,
it only return null as listener key. So that calling
goog.events.unlistenByKey does not work.
2014-03-14 10:16:26 +01:00
tsauerwein
b17957b543 Fix support for legacy IE 2014-03-14 10:16:26 +01:00
tsauerwein
d6ca93e23c Adding missing return 2014-03-14 10:16:26 +01:00