mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-08-29 10:43:56 +00:00
feat: support horizontal scrolling
Certain input devices, such as laptop touchpads, support horizontal scrolling. This commit adds support for such horizontal scroll inputs.
This commit is contained in:
@@ -468,7 +468,7 @@ export default function Canvas() {
|
||||
setTransform((prev) => ({
|
||||
...prev,
|
||||
pan: {
|
||||
...prev.pan,
|
||||
x: prev.pan.x + e.deltaX / prev.zoom,
|
||||
y: prev.pan.y + e.deltaY / prev.zoom,
|
||||
},
|
||||
}));
|
||||
|
Reference in New Issue
Block a user