Dragging isn't working / How to enable dragging?

You can enable dragging within a web page by changing the Drag Mode of your WebViewPrefab or CanvasWebViewPrefab to DragWithinPage:

Drag Mode setting

The default Drag Mode is DragToScroll, which causes drag interactions to trigger scrolling, but changing the Drag Mode to DragWithinPage causes drag interactions to trigger dragging elements within a page instead. If you want drag interactions to trigger both scrolling and dragging within a page (like in a mobile browser), here are some options:

• For Android (non-Gecko) and iOS, you can enable Native 2D Mode, which enables native touch interactions.

• For Windows, macOS, and Android Gecko, you can implement touch interactions using the IWithTouch interface. WebViewPrefab and CanvasWebViewPrefab don't yet support touch interactions with IWithTouch out-of-the-box, but I have a feature request for that, and I'll update this article when I add support for that in the future.