rodydavis / infinite_canvas

Flutter infinite canvas that can be zoomed and panned.
https://rodydavis.github.io/infinite_canvas/
Apache License 2.0
51 stars 28 forks source link

Zoom and Pan #8

Open Sesa1988 opened 1 week ago

Sesa1988 commented 1 week ago

Hi,

I think something is broken about this with a touch screen. I cant zoom or pan in the online demo.

Is there any way to Pan on windows with a mouse?

rodydavis commented 1 week ago

Usually holding control will pan, but for zoom it should use the +/- keys.

Does it work with a trackpad? I am using the built in events so it could be a bug with flutter gesture detector or not implemented yet.

Sesa1988 commented 1 week ago

Usually holding control will pan, but for zoom it should use the +/- keys.

Does it work with a trackpad? I am using the built in events so it could be a bug with flutter gesture detector or not implemented yet.

I tested the web demo on an Android phone and a Windows PC with mouse and keyboard. Pan and zoom didnt work on this devices but I didnt test it with a trackpad.

I think only the +/- buttons worked.