Discovered a conflict issue with two finger gestures on WebView

Found two issues

  1. When using two finger zoom in a mobile browser, it is not smooth and frequently jumps, and in severe cases, it may jump out of the camera range

  2. Moreover, when translating the model, there may be issues with smoothness and jumping. My goal was to use two fingers to operate the translation, but the model encountered a situation where both scaling and translation coexisted, which was very unsmooth

I would like to know the reasons for the above problems and the corresponding solutions. Thank you very much

Please find below our responses:

  1. Indeed, performance on a mobile device will be slower than on a desktop. This is due to the resource constraints on a mobile device such as lower RAM availability. Such performance issues tend to manifest more on larger models and on lower-end devices.

  2. Pan and zoom operators are mapped to a two-finger detection and movement and thus can include both operations in a seemingly single hand gesture from the user. It is not uncommon for Communicator developers to create their own custom operators to achieve more granular control. To that end, we publish the TypeScript code for the operators to serve as a reference. This can be found in HOOPS_Communicator_2024.7.0\web_viewer\deprecated\typescript\operators.

Thank you for your reply, but even small models may have gesture conflicts. What I mean by not smooth is that the model will flash around the center position until it is reset before returning to its normal position

This situation will be very obvious on WebView, but slightly better in browsers

What device are you using? Also, for clarity, what is WebView? Is this just the default Web Viewer that comes with the Communicator package?

Yes , we are trying the communicator package. The webview I mentioned above refers to the webpage embedded on mobile devices. This issue is not only present in the software I developed, but also when opening the model webpage in the built-in browser of other software. It has been tested on a considerable number of real Android and iOS devices.

We will likely need to get more information on how to reproduce the issue on our end. We’ve tested on an iPhone 15 and iPad 6th gen and the two finger pan and zoom appear to be working as expected. Are you able to create a ticket on our Communicator Support Portal? If not, we can set up alternative arrangements.

Thanks,
Tino

1 Like

Thank you very much for your help. The observed phenomenon should be that an additional zoom operation was triggered, which only appears in the built-in browsers of some mobile software. I guess it may be a problem of chaotic touch events.

But now the problem has been solved, I have rewritten the communicator OperatorId. Navagate’s panOperator and zoom Operator are processed separately on the same touch layer, which has achieved the expected effect

1 Like