Changeset 8855:810d024cf8b0 in orange


Ignore:
Timestamp:
08/30/11 19:39:19 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
5b9fa89fd2e0791779baf8d404f10b1d94f0294c
Message:

Mouse sensitivity should affect scaling as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplot3d.py

    r8854 r8855  
    11431143            dy /= self.scale_factor * self.height() 
    11441144            dy /= float(self._zoomed_size[1]) 
     1145            dx *= self.mouse_sensitivity / 5. 
     1146            dy *= self.mouse_sensitivity / 5. 
    11451147            right_vec = normalize(numpy.cross(self.camera, [0, 1, 0])) 
    11461148            self.additional_scale = [-dx * abs(right_vec[0]) / float(self._zoomed_size[0]), 
Note: See TracChangeset for help on using the changeset viewer.