Smooths canvas zooming and panning with animated, exponential easing for a more polished tabletop experience.
Demo
Features
- Smooth Zooming: Mouse wheel zooming with exponential decay animation
- Smooth Panning: Right-click drag panning with slick interpolation
- Configurable Speeds: Independent controls for zoom and pan animation speeds
- User Choice: Per-user settings allow individual players to opt-out while others use smooth controls
- Macro Alternative: Companion macro for players who can't install modules, but want to experience this module.
Installation
Option 1: Module Installation (Recommended)
- In Foundry VTT, go to Add-on Modules
- Click Install Module
- Search for "EZGlide" and install
- Enable the module in your world settings
Option 2: Macro Alternative
For players who can't get their GM to install modules, use the companion macro:
- Copy the contents of
macro/macro.js - Create a new macro in Foundry VTT
- Paste the code and run it
- Configure your preferred settings in the dialog
Note: You will need to run the macro each time you load into the world to apply it, but your settings from past runs are saved.
Configuration
Access settings through Game Settings (tab) → ⚙ Configure Settings → ⛸ EZGlide (Exponential-Zoom & Glide):- Smooth Zoom: Enable/disable smooth zooming behavior
- Zoom Smoothing Factor: Controls animation speed (Lower values have slower convergence, higher values are faster.)
- Zoom Step Size: Multiplier for each wheel scroll (Foundry's default is equivlent to 1.05, but higher values pair well with smooth zooming)
- Smooth Panning: Enable/disable smooth panning behavior
- Pan Smoothing Factor: Controls pan animation speed
All settings are user-scoped, allowing individual players to disable smooth controls while others keep them enabled.
Technical Details
- Dependencies: Requires lib-wrapper
- Conflicts: Incompatible with aeris-smooth-camera (both modify canvas interaction). Note: unlike aeris-smooth-camera, this modules allows for simultaneous panning and zooming.