Files
aladin-lite/examples
bmatthieu3 b6a6dd15e4 Enhance zooming on mouse/trackpad
When zooming with a mouse or a trackpad a wheel event is triggered.
Originally the fov of the viewport was changed but it happened setting
the fov is projection dependant therefore leading to big zooming effect
for TAN projection for example.
Now there is a new way of zooming which is done by setting the screen
zoom factor instead of the fov. Zooming with this factor is projection
agnostic.
With that the pr adds:
* an interpolated zooming effect moving the viewport from a start screen
zoom factor to another by following a hermite cubic interpolation
function
* bugfix: originally, multiple wheel events done shortly in time resulted in a
zooming "congestion" bug leading to a zoom effect similar to only one
isolated wheel event. Now triggering several wheel event allow to zoom
more than only one isolated.
* a new listener `wheelTriggered` allowing the user to define its own zooming.
When wheelTriggered is set, the default zooming is not executed
2025-04-03 18:04:06 +02:00
..
2024-10-11 13:45:04 +02:00
2025-02-14 08:42:09 +01:00
2023-08-22 16:08:14 +02:00
2024-04-23 00:19:45 +02:00
2025-02-14 08:42:09 +01:00
2025-03-20 15:47:59 +01:00
2023-07-28 13:31:34 +02:00
2024-03-25 17:10:07 +01:00
2024-07-29 09:45:33 +02:00
2024-07-29 09:45:33 +02:00
2024-09-12 17:05:33 +02:00
2024-02-29 18:13:22 +01:00
2024-02-29 18:13:22 +01:00
2024-04-23 00:19:45 +02:00
2024-02-29 18:13:22 +01:00
2024-02-29 18:13:22 +01:00
2024-07-02 19:00:16 +02:00
2024-09-11 18:15:17 +02:00
2024-04-23 00:19:45 +02:00
2024-04-23 00:19:45 +02:00
2024-04-23 00:19:45 +02:00