Andreas Hocevar
134ec9c8d0
Remove duplicated logic from PointerInteraction
2022-06-16 14:36:17 +02:00
Andreas Hocevar
f99dc1e9ec
Better fix for changing pointer ids on event target change
2022-06-15 16:29:07 +02:00
EvertEt
25e1d6c5d6
Improve some null types for strictNullChecks
2022-02-06 19:36:30 +01:00
Maximilian Krög
bb5e0773ae
Move tolerance should not increase with higher pixel ratio
...
Browsers already handle the scaling, no need to multiply this again.
This now also allows setting a moveTolerance of zero which was not
possible before. In the isMoving_ method the condition is
distance > tolerance so this will work.
2021-06-17 19:08:29 +02:00
Andreas Hocevar
01029ac146
Do not require PointerEvent constructor
2021-05-17 21:31:52 +02:00
Andreas Hocevar
6e7448cc2a
Update comment
2021-04-06 12:16:44 +02:00
Andreas Hocevar
0da0c903a0
MapBrowserEvent#preventDefault() behaves the same as with native events
2021-04-05 10:05:32 +02:00
Andreas Hocevar
158f6c7bcd
Fix singleclick and doubleclick events
2021-03-25 21:20:16 +01:00
Simon Seyock
610896ef95
fix jsdoc lint problems
2021-03-09 09:00:50 +01:00
Andreas Hocevar
96b6809209
Merge pull request #12083 from ahocevar/simplify-events
...
Simplify event handling for custom elements
2021-03-05 08:20:37 +01:00
Andreas Hocevar
83ee87581f
Simplify event handling for custom elements
2021-03-04 22:16:28 +01:00
Andreas Hocevar
4ce05ed980
Only preventDefault when event is cancelable
2021-03-03 23:51:48 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Andreas Hocevar
de1b4ddb97
Improve tests and fix singleclick
2020-10-21 16:40:16 +02:00
Andreas Hocevar
63a784531d
Do not emulate dblclick on multi-touch
2020-10-21 00:44:25 +02:00
elnabo
81103c9253
Allow mouse input if map is rendered in an other window
2020-10-02 09:39:19 +02:00
Andreas Hocevar
fda93cee23
Updates for TypeScript v4
2020-08-25 13:03:58 +02:00
Andreas Hocevar
886ca26c6a
Remove elm-pep dependency
2020-06-11 13:11:28 +02:00
Andreas Hocevar
1a2b4bd479
Merge pull request #11025 from ahocevar/no-more-mapbrowser-pointer-event
...
Get rid of MapBrowserPointerEvent
2020-05-11 09:11:00 +02:00
Andreas Hocevar
33ce206bab
Get rid of MapBrowserPointerEvent
2020-05-10 16:54:34 +02:00
Andreas Hocevar
12b5a829d9
Make events work when inside a web component
2020-05-10 08:40:47 +02:00
Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod
d15ec1c12c
Remove all inheritDoc tags from disposeInternal functions
2020-04-03 08:10:41 +02:00
Sampo Osmonen
dd480feda1
Prevent touchmove event default when no preceding pointer event
...
Prevents zooming the page instead of the map on the first interaction
2020-03-10 12:56:15 +02:00
Andreas Hocevar
a1386e3a1f
Update comment
2020-03-10 09:36:10 +01:00
Sampo Osmonen
85d84a0c40
Add safeguard to handleTouchMove
2020-03-09 19:37:21 +02:00
Andreas Hocevar
88b8b2f7cb
Conditional default prevention instead of touch-action: none
2019-11-25 01:09:05 +01:00
Andreas Hocevar
569deddd06
Use elm-pep instead of PEP as pointer events polyfill
2019-11-20 07:59:32 +01:00
Andreas Hocevar
cc24ec1be6
Set touch-action to allow page scrolling
2019-10-24 16:18:40 +02:00
Andreas Hocevar
899af3e5c7
Allow EventTarget to use a different default target
2019-09-26 17:56:51 +02:00
Andreas Hocevar
a139b01f8e
Always dispatch pointermove, but calculate coordinates lazily
2019-09-24 16:02:36 +02:00
ahocevar
9366dee233
Use fixed fork of pepjs
2019-09-04 21:37:38 +02:00
Andreas Hocevar
1f5dfef200
Merge pull request #9888 from ahocevar/pep
...
Use PointerEvent polyfill instead of our own abstraction
2019-08-31 21:07:02 +02:00
ahocevar
20df00a4e8
Only create pointermove when someone listens
2019-08-30 09:16:27 +02:00
ahocevar
74e8e013cf
Use pepjs instead of our own pointerevent polyfill
2019-08-29 18:58:53 +02:00
ahocevar
1bd23a0c32
Remove old Android workaround
2019-06-03 10:03:53 +02:00
ahocevar
3397796ff2
Use setTimeout without the window namespace
2018-10-03 13:06:14 +02:00
Florent gravin
f3fb88905e
Use window.setTimeout for correct type checking
2018-09-19 16:48:51 +02:00
Frederic Junod
81bab31efb
Remove extra imports in jsdoc
...
The symbols are already imported (es6 import)
2018-09-08 11:01:02 +02:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Tim Schaub
40486a0ecc
Avoid shadowing EventTarget
2018-07-26 10:14:58 -06:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
ahocevar
edd23dbf6a
Use extends and super for MapBrowserEventHandler
2018-07-17 13:53:05 +02:00
Frederic Junod
f2d0b11d24
Move jsdoc constructor comments
2018-07-17 09:59:00 +02:00
Tim Schaub
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
ahocevar
5080a6d401
Don't go back to not moving when dragging
2018-06-05 21:09:38 +02:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00