Skip to main content
J
19h ago

Pinch and Zoom on mobile devices

I have built an interactive map of a building. The map is split into multiple room. Rooms can be selected and interacted with. Each room has multiple states: unselected, hover, selected, visited.

How can I make it possible to zoom in and out of the map on mobile devices?

The map is embedded in a web app. When viewed on a mobile device, it is impossible to pinch and zoom, is there a way to enable this?

Or is there an straightforward way to add zooming functionality within Rive?

1 reply
J
J
9h ago

Do you have isTouchScrollEnabled set to true? This may only allow for scrolling though. I haven't tried zooming. If this doesn't work, you could register the listeners manually and pass them using the low-level api. Probably not very straight forward though.