Skip to content

Summarize original script issues #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
16 of 26 tasks
brunob opened this issue Feb 19, 2025 · 2 comments
Open
16 of 26 tasks

Summarize original script issues #29

brunob opened this issue Feb 19, 2025 · 2 comments

Comments

@brunob
Copy link

brunob commented Feb 19, 2025

Following #27 (comment) let's try to summarize issues of original script that are still valid :

@Raruto feel free to amend this list if i've checked some issues that are not really fixed :)

@Raruto
Copy link
Owner

Raruto commented Feb 20, 2025

elmarquis/Leaflet.GestureHandling#14

@hupe13 Do you use that? Has it ever given you any problems?


elmarquis/Leaflet.GestureHandling#31

@brunob It's one of the few 3rd party plugins (that I use) that I didn't develop myself :)

_onExitFullscreen: function() {
if (this._map.options.gestureHandling)
this._map.gestureHandling.enable();
},
_onEnterFullscreen: function() {
if (this._map.options.gestureHandling)
this._map.gestureHandling.disable();
},


elmarquis/Leaflet.GestureHandling#11

@brunob I honestly don't remember, at that time I think I had solved many of these things:

_handleTouch: function(e) {
//Disregard touch events on the controls and popups if present
var ignore = L.DomUtil.hasClass(e.target, "leaflet-interactive") || e.target.closest('.leaflet-control-container') || e.target.closest('.leaflet-popup-pane');
if (ignore) {
if (L.DomUtil.hasClass(e.target, "leaflet-interactive") && e.type === "touchmove" && e.touches.length === 1) {
this._enableTouchWarning();
} else {
this._disableTouchWarning();
}
} else if (e.type !== "touchmove" && e.type !== "touchstart") {
this._disableTouchWarning();
} else if (e.touches.length === 1) {
this._enableTouchWarning();
} else {
e.preventDefault();
this._disableTouchWarning();
this._enableInteractions();
}
},

_handleScrollOnPopup: function(e) {
L.DomEvent[e.type == 'popupopen' ? 'on' : 'off']
(e.popup._contentNode, "wheel", this._handleScroll, this);
},

See also: https://raruto.github.io/leaflet-gesture-handling/test/

@hupe13
Copy link
Contributor

hupe13 commented Feb 20, 2025

Do you use that? Has it ever given you any problems?

I don't have any problems with it. I tested it on Android just now. When you tap on a cluster to long (in the millisecond range), then a very small moment the message from GestureHandling appears sometimes. But you have to pay close attention to it, otherwise it won't be noticed.

Some users are very accurate, no one has ever complained. And I haven't noticed it so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants