Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

mouse wheel zooming problems #4696

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 5 comments
Closed

mouse wheel zooming problems #4696

openstreetmap-trac opened this issue Jul 23, 2021 · 5 comments

Comments

@openstreetmap-trac
Copy link

Reporter: NE2
[Submitted to the original trac issue database at 3.00pm, Wednesday, 21st November 2012]

A recent change makes the map not stay centered when I zoom in/out using the mouse wheel in K-Meleon 1.5.3. It's an old browser (based on Mozilla 1.8), but this probably means that something's wrong with the code.

@openstreetmap-trac
Copy link
Author

Author: NE2
[Added to the original trac issue at 12.40am, Saturday, 24th November 2012]

PS: double clicking with the mouse does work. So it's still able to detect the mouse position; it's just something wrong with the scroll wheel code.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 10.47am, Saturday, 24th November 2012]

What do you mean by "stay centred" exactly?

I can't remember offhand exactly what OpenLayers did, but Leaflet seems to be behaving reasonably as far as I can see - it ensures that whatever point I zoom in on with the scroll wheel stays in view as I zoom in.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 10.49am, Saturday, 24th November 2012]

I've tried the old OL interface now (it's on http://notes.apis.dev.openstreetmap.org/) and it seems to behave in much the same way as Leaflet and keep the point the mouse is over at a fixed point in the view as you zoom in.

@openstreetmap-trac
Copy link
Author

Author: NE2
[Added to the original trac issue at 5.10am, Sunday, 25th November 2012]

Yes, it does work properly in currwnt versions Firefox and IE. Both of those are more bloated than K-Meleon. Until the recent change, it worked fine in all those browsers. I see no improvements, only a slight difference in UI, so why was it changed in the first place?

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 8.31am, Sunday, 25th November 2012]

Because somebody submitted a patch to change it and the consensus was that Leaflet is an improvement - it's smaller and works better on mobile devices.

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

No branches or pull requests

1 participant