OCAP2 / OCAP

OCAP is an Arma 3 mission recording suite. It consists of a serverside addon and a packaged web server executable that allows for after-action review and better insight into what really happened.
Other
58 stars 14 forks source link

Mouse should be center of the zoom #23

Closed Fank closed 3 years ago

Fank commented 3 years ago

Currently the zoom is always center of the screen. Its more handy if the zoom target is below the cursor.

Fank commented 3 years ago

@indig0fox it was the case for a short time during your marker changes, but it was back to default at the end. Any reason?

indig0fox commented 3 years ago

line 253 here https://www.github.com/OCAP2/web/tree/main/static%2Fscripts%2Focap.js is the custom zoom event handler I had mentioned previously. using it rather than the default leaflet zoom makes it a little snappier and I think other than the focus, is a better option. it might be possible to change the actual command to zoom at the cursor location as focus.

Fank commented 3 years ago

Fixed with https://github.com/OCAP2/web/commit/1f83304f74a40939228c697999452450097a38e4