diff --git a/include/osgManipulator/Dragger b/include/osgManipulator/Dragger index 98143aec2..e4908e2ed 100644 --- a/include/osgManipulator/Dragger +++ b/include/osgManipulator/Dragger @@ -103,7 +103,7 @@ class OSGMANIPULATOR_EXPORT PointerInfo if (needToResetHitIter) _hitIter = _hitList.begin(); } - void setMousePosition(int pixel_x, int pixel_y) + void setMousePosition(float pixel_x, float pixel_y) { _pixel_x = pixel_x; _pixel_y = pixel_y; @@ -111,7 +111,7 @@ class OSGMANIPULATOR_EXPORT PointerInfo public: - int _pixel_x, _pixel_y; + float _pixel_x, _pixel_y; osg::Camera* _camera; IntersectionList _hitList; diff --git a/src/osgManipulator/Dragger.cpp b/src/osgManipulator/Dragger.cpp index cd4c21374..9efe580ef 100644 --- a/src/osgManipulator/Dragger.cpp +++ b/src/osgManipulator/Dragger.cpp @@ -18,8 +18,8 @@ using namespace osgManipulator; PointerInfo::PointerInfo(): - _pixel_x(0), - _pixel_y(0), + _pixel_x(0.0), + _pixel_y(0.0), _camera(0) { _hitIter = _hitList.begin();