-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unity Mousewheel crash. How do I implement scroll pages in HoloLens 2 Unity apps? #3705
Comments
@michaelfarnsworth could you please take a look? |
I'm using Webview2 0.17.1.pre3 and I don't have Device in
What version are you using? |
@RubenGarcia that's odd. There should be no published version without that enum defined. It's under the Microsoft.MixedReality.WebView namespace. Are you just trying to build the GettingStarted sample app? |
@RubenGarcia I'm using version 0.17.1-Pre.5. This is the example I mentioned earlier: https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/HoloLens2_GettingStarted. In this example, WebViewBrowser.cs uses Device. |
I had issues with Pre.5; I'll test it again and report. |
I confirm that removing the Device line works on Pre.3, and clicks are correctly received and processed by the webpage. |
I confirm that using your code to create MouseWheel events crashes Unity, both in OnPointerDragged and on Update(). |
I tried to create MouseWheel events in OnPointerDown(), Unity still crash. How did you make it work?
|
I've converted this to a bug for the crash and added it to our backlog for the Hololens team to investigate. |
Any insights about this issue? I'm running into the same problem |
I went through the tutorial and downloaded the examples.
Following the example, I implemented OnPointerDown() and OnPointerUp().
But found that can only achieve click operations and can not scroll the web page.
I want to make it easy for users to scroll and navigate the web using gestures. How do I do that?
(I tried to implement MouseWheel operation in OnPointerDragged(), but couldn't find any instructions or examples, and every time I tried to send a MouseEvent myself, Unity crashed.)
Here is part of my code :
AB#46192317
The text was updated successfully, but these errors were encountered: