Opened 6 years ago

Closed 5 years ago

#4696 closed defect (wontfix)

mouse wheel zooming problems

Reported by: NE2 Owned by: rails-dev@…
Priority: major Milestone:
Component: website Version:
Keywords: Cc:

Description

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.

Change History (6)

comment:1 Changed 6 years ago by NE2

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.

comment:2 Changed 6 years ago by Tom Hughes

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.

comment:3 Changed 6 years ago by Tom Hughes

Resolution: invalid
Status: newclosed

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.

comment:4 Changed 6 years ago by NE2

Resolution: invalid
Status: closedreopened

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?

comment:5 Changed 6 years ago by Tom Hughes

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.

comment:6 Changed 5 years ago by Tom Hughes

Resolution: wontfix
Status: reopenedclosed
Note: See TracTickets for help on using tickets.