MouseEvent3D.MOUSE_WHEEL delta doesn’t work good

Software: Away3D 4.x

moraless, Newbie
Posted: 18 November 2012 09:27 PM   Total Posts: 6

Hi there,

I read that the “delta” property indicates if we are scrolling up or down by an integer positive or negative respectively.

An example of my code is:

// This cylinder is a Mesh object, with CylinderGeometry(10,10)

cylinder.addEventListener(MouseEvent3D.MOUSE_WHEEL,scrol);

private function 
scrol(event:MouseEvent3D){
      trace
(event.delta);

Well, the problem is that the delta property only gets a positive or negative number in the first scrolll (when i move the mouse wheel by a unit), the next “units” it gives me ever 0(zero).

I saw some people complaining in Google about having a mac or a Windows operative system, well, mine is Windows 8.


Thanks for your attention.


Cumps

 

   

Avatar
Alejandro Santander, Administrator
Posted: 19 November 2012 12:26 PM   Total Posts: 414   [ # 1 ]

Thanks for noticing the bug!

This error has been noted and patched in hotfix: https://github.com/away3d/away3d-core-fp11/commit/f83e15cffed1ad97bd11979e6279d4cd566b5071

After review early next week, the fix should be merged with master and dev branches. If there are any aspects of the patch that don’t work as expected, please let us know in this thread

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X