question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactor discrete zooming into delayed continous zooming

See original GitHub issue

The discrete zooming capabilities could be improved significantly. The problems with apple’s magic mouse (#4410) and smooth-scrolling touchpads are becoming greater; the scrollwheel events have a time delay right now; and other map libraries allow for keeping the zoom buttons pressed for a smooth zooming effect.

IMHO, all the zooming handlers should rely on the same method: L.Map._move, the one that Map.Handler.TouchZoom uses right now. Ideally this would allow for better zoom snapping and a scroll-zooming with faster UI response.

The idea is to make a scroll-zoom interaction the same as a touch-zoom interaction: when it starts, fire a zoomstart, fire zoom on each wheel event, and fire zoomend (and snap) after the wheelDebounceTime timeout.

Similar approach for keyboard or L.Control.Zoom: fire zoomstart on keydown/mousedown, fire zoom every frame, then zoomend (and snap) on keyup/mouseup.

Unless the Safari issue is very pressing, this can be pushed back into the queue.

See also #4610

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:37
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
AdityaAnand1commented, Feb 28, 2020

Hey there, any plans to work on this?

Also, can anybody share a good smooth scrolling configuration (or link to one)? (one like Google maps is probably what we all want)

1reaction
Falke-Designcommented, Jul 9, 2022

@AndreasAtakan thank you for sharing. This is a nice plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | AnyLogic Help
Even if your image has small original size, its memory footprint gets bigger when you zoom in the picture during the model runtime....
Read more >
Using the Zoom tools—ArcMap | Documentation
Right-click the Continuous Zoom/Pan tool to pan the map. You can also use the mouse wheel to zoom in and out. Roll the...
Read more >
joshferrell - Profile - Bountysource
joshferrell posted a $15 bounty to The visualizer breaks on ... joshferrell commented on this issueRefactor discrete zooming into delayed continous zooming.
Read more >
Contents | Zoom in | Zoom out Search Issue | Next Page For ...
Previous Page | Contents | Zoom in | Zoom out | Front Cover | Search Issue | Next Page ... the rework that...
Read more >
Silverlight Techniques | Techniques for WCAG 2.0 - W3C
Silverlight supports text resize through browser zoom, as described in G142: Using ... or about refactoring XAML to support better designer-coder-localizer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found