TouchScript 9.0 alpha 2 mouse scroll bug on Mac

Ask for help and post bugs.

TouchScript 9.0 alpha 2 mouse scroll bug on Mac

Postby ipsus » Tue Apr 18, 2017 12:15 pm

Hi Valentin,

I found a bug with mouse scroll which can be reproduced on Mac and not on Windows for unknown reason.
Have a look at MouseHandler.cs UpdateInput(), lines 128-133: there is no code which clears scroll amount if Input.mouseScrollDelta is close to zero, so after first scroll it stays active whenever mouse moves.
This code worked for me:
Code: Select all
         var scroll = Input.mouseScrollDelta;
         if (!Mathf.Approximately(scroll.sqrMagnitude, 0.0f))
         {
            mousePointer.ScrollDelta = scroll;
            updatePointer(mousePointer);
         }
         else
         {
            mousePointer.ScrollDelta = Vector2.zero;
         }
ipsus
 
Posts: 9
Joined: Mon Apr 17, 2017 1:13 am

Re: TouchScript 9.0 alpha 2 mouse scroll bug on Mac

Postby valyard » Thu Jul 20, 2017 10:20 pm

Added for 9.0a4.
valyard
Site Admin
 
Posts: 434
Joined: Mon Sep 08, 2014 11:57 pm

Re: TouchScript 9.0 alpha 2 mouse scroll bug on Mac

Postby valyard » Sun Jul 30, 2017 3:55 pm

valyard
Site Admin
 
Posts: 434
Joined: Mon Sep 08, 2014 11:57 pm


Return to Help and Bugs

Who is online

Users browsing this forum: No registered users and 1 guest