Commit Graph

254 Commits

Author SHA1 Message Date
Éric Lemoine
e9a349e4f1 Make feature handler propagate touch events
This commit is a follow-up on issue #294 (commit a6119f6) and #861 (commit c7a4045). The feature handler should not stop the bubbling up of browser events. In this particular case, when the feature handler is activate, Sencha Touch will trigger longpress events when panning the map because the feature handler stops touchmove.
2013-05-13 13:17:02 +02:00
Bart van den Eijnden
ec4d3a48d7 Merge pull request #224 from jorix/3402-touch_logic_to_superclass
Move some touch logic to the `handler` base class
2013-04-25 07:42:39 -07:00
Andrew Vardeman
7ff0247b00 Account for the fact that touch devices have no mouse and therefore no last mouse position. When "undo" is invoked in a mobile app, sync the meaningless last-mouse-position point to the last point in the digitized linestring so there is visible feedback that something has been undone. Otherwise the last-mouse-position point is left at the point of the last tap on the map, which is unfortunately the location of the vertex that has just been undone, incorrectly implying that the vertex is still there. 2013-04-04 11:03:13 -05:00
ahocevar
18b0c5fc7d Merge pull request #812 from ahocevar/mousewheel
Better mousewheel/touchpad behavior for zooming. r=@elemoine
2013-02-14 01:13:56 -08:00
ahocevar
f46ed44131 Merge pull request #857 from faegi/featureClickPatch
Clear cached mousedown/up positions used for distinguishing between (fix #856).
2013-02-12 01:46:30 -08:00
Marc Jansen
a34e627b75 Remove dangling space in license header. 2013-02-07 10:33:20 +01:00
Éric Lemoine
c7a4045e88 Make click handler propagate touchend
This commit is a follow-up on issue #294 and commit a6119f6. Our handlers should not prevent the bubbling up of browser events. This, for example, prevents Sencha Touch's longpress events from working properly.
2013-01-30 15:25:34 +01:00
ejn
dea7438850 Clear cached mousedown/up positions used for distinguishing between
drag and click in feature handler after a click event.

Fixes #856
2013-01-28 10:14:51 +01:00
Tim Schaub
bbc73a21d8 Update copyright date 2013-01-07 22:01:16 -05:00
ahocevar
4b2e80fa36 Merge pull request #805 from mosesonline/unselectAllFix
unselectAll on removing layer fix
2012-12-24 06:17:04 -08:00
ahocevar
1081fc4b54 Better mousewheel/touchpad behavior for zooming
The navigation control gets better defaults, and the MouseWheel handler
gets a new maxDelta option, which can be used to avoid huge zoom level
jumps on heavy wheel/pad movements.
2012-12-23 18:01:17 +01:00
ahocevar
c36b897878 Removing unused code
Because this method is called by OpenLayers.Function.bindAsEventListener,
which conditionally assigns window.event already, e cannot be null or
undefined here.
2012-12-07 21:10:20 +01:00
ahocevar
8701a54603 Cloning event for use in delayed function
In IE, where window.event is used, the event can change during the delay.
To avoid this, we store the event properties in a new object.
2012-12-07 21:09:09 +01:00
mosesonline
5bffb3dea3 Update lib/OpenLayers/Handler/Feature.js
simplify code a little
2012-12-07 12:46:28 +01:00
Gregers Gram Rygg
262153eecc Fix for Issue #778 as suggested by elemoine 2012-12-04 16:58:40 +01:00
Gregers Gram Rygg
a2a391d3b5 Fixed problems with touch events on a scrollable page 2012-11-02 14:22:46 +01:00
Frédéric Junod
f5aae88a31 Merge pull request #294 from fredj/stopped-map-events
can't listen to mousedown/touchstart on map div
2012-07-02 13:44:06 -07:00
Frédéric Junod
1c4253f465 Merge pull request #500 from fredj/scrollable
Handler.MouseWheel: don't always block the handler
2012-05-31 02:08:23 -07:00
Frédéric Junod
4c788c156b Merge pull request #474 from fredj/2685
Remove Handler.MouseWheel mozilla workaround.
2012-05-31 01:05:17 -07:00
Frederic Junod
b0377b54b0 Call the callbacks if the cursor is over a div with an 'olScrollable' css class 2012-05-31 09:36:28 +02:00
ahocevar
2ff5a7b599 Merge pull request #498 from gregersrygg/remove-old-opera-mouse-wheel-fix 2012-05-30 23:12:14 +02:00
ahocevar
c1690b26c4 Merge pull request #483 from gregersrygg/master
Improve analog mouse wheel zooming
2012-05-30 14:03:51 -07:00
Frederic Junod
792e6d6a2c Remove global variable 'overflow', no functional change. 2012-05-30 16:42:30 +02:00
Gregers Gram Rygg
aa0ec38b20 Removed fix for Opera < 9.2 2012-05-30 15:17:54 +02:00
Gregers Gram Rygg
09058e2457 Reverted deletion of fix for Opera < 9.2 2012-05-30 15:02:29 +02:00
Gregers Gram Rygg
f7f763d1d3 Removed analog wheel detection and simplified code 2012-05-30 14:37:43 +02:00
Frederic Junod
a6119f6a75 Prevent the default browser behavior without stopping the event propagation. 2012-05-30 09:07:49 +02:00
Gregers Gram Rygg
2da16a0b69 Removed caching of the analog wheel detection for users switching between mouse/touchpad 2012-05-29 17:54:02 +02:00
Gregers Gram Rygg
8f38ba5bd0 Chagned APIProperty to Property for isAnalogScrollWheel 2012-05-29 16:08:15 +02:00
Gregers Gram Rygg
50d24d7756 Improve analog mouse wheel detection and normalize event.wheelDelta for Safari 2012-05-29 13:26:27 +02:00
Gregers Gram Rygg
12931612ea Don't affect digital mouse wheels (a.k.a. step-scroll) 2012-05-22 17:43:52 +02:00
Gregers Gram Rygg
95bc51ce3d Make analog mouse wheel adjustments configurable and reduce sensitivity 2012-05-21 15:11:05 +02:00
fredj
2bcd904df6 Remove Handler.MouseWheel mozilla workaround.
This workaround was created because of a mozilla bug [1] with
clientX, clientY on wheel events (DOMMouseScroll).

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=352179
2012-05-18 14:55:31 +02:00
Éric Lemoine
e0b93c2e45 The OpenLayers code is published under the 2-clause BSD license 2012-03-30 08:33:55 +02:00
Éric Lemoine
650df2a8f1 change copyright header in every OpenLayers js file 2012-03-29 22:14:56 +02:00
Frederic Junod
2de2fe2563 Unnecessary and missing semicolon. 2012-03-19 09:13:01 +01:00
Bart van den Eijnden
1dba227db4 add comment as to why clearTimer is needed here, and change control flow back to what it was before breakage, i.e. do not call clearTimer if it does not pass the tolerance 2012-03-12 09:59:25 +01:00
Bart van den Eijnden
f28c432b34 prevent double click from firing click callback in IE 2012-03-09 14:05:48 +01:00
Xavier Mamano
bfb379f349 Fix some problems in the documentation. 2012-03-05 11:43:09 +01:00
Éric Lemoine
c58f093615 Revert "Removing camelize method."
This reverts commit 43ef0920c2.
2012-03-04 23:22:21 +01:00
Éric Lemoine
43809ea330 Merge pull request #222 from camptocamp/access_keyboardcontrol
KeyboardDefaults control improvements
2012-02-28 03:02:19 -08:00
ahocevar
c2b8f9cdb5 Merge pull request #64 from tmcw/no-camel
Removing camelize method.
2012-02-28 00:05:58 -08:00
Xavier Mamano
ee8e892bb4 Move some touch logic to the handler base class. 2012-02-15 17:55:37 +01:00
Éric Lemoine
c0b02b278a add an observeElement option to Handler.Keyboard and Control.KeyboardDefaults to control the DOM element on which key events are observed 2012-02-15 13:58:48 +01:00
Éric Lemoine
e15dde0561 make the keyboard handler work on the map div as opposed to the document 2012-02-15 13:58:47 +01:00
ahocevar
05de2b5109 Don't let button controls interfer with handlers.
This change involves removal of the map's eventsDiv and introduces an OpenLayers.Events.buttonclick component that adds a buttonclick event which makes sure that only events that are not related to clicking a button propagate. This allows button controls to be on the map's viewPortDiv again.
2012-01-20 03:37:11 +01:00
fredj
b8257aa64c replace Pixel argument with simple object (Util.createDiv) 2012-01-14 14:11:25 +01:00
Éric Lemoine
e1ea3471e0 Merge pull request #143 from jorix/stop-freehand
Handler.Path: Stop freehand using "maxVertices"
2012-01-12 12:08:12 -08:00
fredj
4fcd28fe08 Change some 'Parameter' to 'Property' in documentation. Non functional change 2012-01-12 09:30:51 +01:00
fredj
04ae5f8db8 Change all 'Return:' to 'Returns:' in documentation. Non functional change 2012-01-12 09:26:49 +01:00