Commit Graph

13887 Commits

Author SHA1 Message Date
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 296da6f4c1 Updating google-map example to use pointer events 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 43aac5480c fixes interaction options in tests 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 3d7ae92f0b tests for mouse- and touchsource 2014-03-14 10:16:26 +01:00
tsauerwein 2846996609 tests for pointereventhandler 2014-03-14 10:16:26 +01:00
tsauerwein 68b7ee58a5 fixes tests for mapbrowserevent 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 91cd8f20cc Use change event in geolocation example 2014-03-14 09:32:37 +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
Steven Pukansky e62e537eed Update zoomslider custom styling to match control styling changes 2014-03-13 11:52:09 -04:00
Austin Hyde a0fdc0ecf9 Update the zoomslider example to have better styling for touch devices 2014-03-13 11:52:09 -04:00
Austin Hyde a8dd1d29c8 Fix zoomslider controls to match zoom controls more closely 2014-03-13 11:52:09 -04:00
Austin Hyde f45cb50121 Add styles for .ol-touch .ol-zoomslider 2014-03-13 11:52:09 -04: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
Andreas Hocevar 9547ded39a Merge pull request #1854 from ahocevar/modify-interior-rings
Add support for editing interior polygon rings
2014-03-13 15:51:35 +01:00