![]() ![]() It shouldn’t be hard, I can provide a PR if you’re OK. I found a hack so threshold always says to zoom: camera.pinchToPanMaxDistance = 0 īut I think it would be better to update the code to not use the threshold when panning is disabled. I think the right behaviour here should be same as setting panningSensibility to 0, it should not be hard to zoom. And that’s why UX is impacted, it’s hard to zoom. But the threshold is still used to decide between zooming and doing nothing. These two instructions combined disable panning. If you simultaneously select 2 or more items of the Listview and swipe them, they will both be removed. multiTouchPanAndZoom = false Ĭ.multiTouchPanning = false multiTouchPanning = false Īlone, disabling multiTouchPanning has no effect because it’s a fallback when multiTouchPanAndZoom is disabled. There is a threshold to decide between panning and zooming. Panning and zooming are still possible but only one at a time. This instruction disables panning and zooming at the same time. So I looked at the code and: .multiTouchPanAndZoom = false I can disable the multitouch by disabling all other buttons on my application. UX is impacted, zooming becomes very hard on touch screen. I need to work only with single touches but my screen is a Multitouch. However, disabling them doesn’t give the expected result. Then, for multi touch event, I found two booleans associated with panning on ArcRotateCameraPointersInput: multiTouchPanning and multiTouchPanAndZoom. Setting panningSensibility to 0 disables panning for all events but I would like some granularity.Īs stated in the docs, camera.attachControl(false, false, -1) disables panning on ctrl + click and right click.Īnd this gives the same result as setting panningSensibility to 0, great! I found that there were three events to look at: I needed to disable panning on my ArcRotateCamera. I feel like disabling panning for multiTouch event results in the wrong behaviour. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |