Commit Graph

7777 Commits

Author SHA1 Message Date
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
tsauerwein
42f0dfa75a Use goog.dispose 2014-03-14 10:16:26 +01:00
tsauerwein
79424ec856 Add comment about mouse support only 2014-03-14 10:16:26 +01:00
tsauerwein
0d72f4542e Remove old event types
Pointer events for the win.
2014-03-14 10:16:26 +01:00
tsauerwein
5f75104e33 Remove DragInteraction 2014-03-14 10:16:26 +01:00
tsauerwein
50d09eba93 Adding missing default returns 2014-03-14 10:16:26 +01:00
ahocevar
18ba2f8be6 Fixing API docs 2014-03-14 10:16:26 +01:00
ahocevar
bc1489e8a0 Adding basic support for mobile
Usability still needs improvement.
2014-03-14 10:16:26 +01:00
ahocevar
d6880039cc Making the draw interaction work with pointer events
This is not yet optimized for mobile, and tests need to be
updated.
2014-03-14 10:16:26 +01:00
ahocevar
be1318f133 Adding basic support for non-mouse devices 2014-03-14 10:16:26 +01:00
ahocevar
f6efcbcc24 The Modify interaction now uses pointer events
While dragging a vertex, the feature on the original layer is
not updated until the first pointer move after dragging. See
#1796. Previously, the Modify interaction did not set the
interacting hint on the view, so the feature was also updated
on the original layer. But now, the interacting hint is set,
which exposes this behaviour.
2014-03-14 10:16:26 +01:00
ahocevar
32ffb1ecae Relay pointermove events again
This will be needed for hover actions.
2014-03-14 10:16:26 +01:00
ahocevar
05dd760287 Rename ol.interaction.PointerInteraction 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
dc164fd496 removes now superfluous DragPanInteraction 2014-03-14 10:16:26 +01:00
tsauerwein
56dcdd02ec base dragrotateandzoominteraction on pointer interaction 2014-03-14 10:16:26 +01:00
tsauerwein
c593add6d8 base dragrotateinteraction on pointer interaction 2014-03-14 10:16:26 +01:00
tsauerwein
12b0fee790 pointer interaction might also receive events that are not pointer events 2014-03-14 10:16:26 +01:00
tsauerwein
411b7257cf refactoring pointer interactions 2014-03-14 10:16:26 +01:00
tsauerwein
fca9c50a3f PointerInteraction uses MapBrowserPointerEvent not MapBrowserEvent 2014-03-14 10:16:26 +01:00
tsauerwein
a696150470 base interaction for zoom box on pointer events 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
e0b345b7db add assertion 2014-03-14 10:16:26 +01:00
tsauerwein
692a68644f introduce type POINTERDRAG to make a distinction between pointer move and drag 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
a31cc3f18c only track events when "pointerdown" event was received, because on native android browser wrong move events are sent with no "pointerdown" event 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
1c75ecc260 former touch interactions now use pointer events 2014-03-14 10:16:25 +01:00
tsauerwein
014ef96c31 base interactions for pointer events on existing touch interactions 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
Éric Lemoine
0577bbc1a1 Make Geolocation dispatch change events 2014-03-14 09:32:25 +01:00
Tim Schaub
88efda1a1f Track resolution and buffer max extent to capture strokes 2014-03-13 20:40:18 -04:00
Andreas Hocevar
1a40b1793c Merge pull request #1789 from ahocevar/mousewheel-delta
Mousewheel zoom broken and resolution constraints not respected in Firefox
2014-03-13 23:43:04 +01:00
ahocevar
44e0f6ce68 Use the delta from goog.events.MouseWheelHandler as-is 2014-03-13 19:51:28 +01:00
Frédéric Junod
457d5635eb Merge pull request #1857 from fredj/doc
Add missing options in olx.layer.HeatmapOptions
2014-03-13 15:57:29 +01:00