From 2b943b4d12d63fe8da3b14cedc4db7a65b061aa4 Mon Sep 17 00:00:00 2001 From: fo76utils <87907510+fo76utils@users.noreply.github.com> Date: Sun, 9 Jun 2024 13:15:01 +0200 Subject: [PATCH] Fixed mouse wheel sensitivity in walk mode and in the UV editor --- CHANGELOG.md | 2 ++ src/glview.cpp | 2 +- src/ui/widgets/uvedit.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 693380e7..aab25510 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ == CHANGELOG == +* Fixed mouse wheel sensitivity in walk mode and in the UV editor. + #### NifSkope-2.0.dev9-20240608 * The UV editor now supports exporting Starfield .mesh files. Note: currently only the first available LOD can be edited, and to be able to render the model with the modifications, the file needs to be saved to a path where it is found by NifSkope as a resource, and the NIF reloaded (Alt+X) after closing resources (Alt+Q). diff --git a/src/glview.cpp b/src/glview.cpp index 0cae1784..b59ef701 100644 --- a/src/glview.cpp +++ b/src/glview.cpp @@ -1924,7 +1924,7 @@ void GLView::mouseReleaseEvent( QMouseEvent * event ) void GLView::wheelEvent( QWheelEvent * event ) { if ( view == ViewWalk ) - mouseMov += Vector3( 0, 0, double( event->angleDelta().y() ) / 480.0 ) * scale(); + mouseMov += Vector3( 0, 0, double( event->angleDelta().y() ) / 8.0 ) * scale(); else { if (event->angleDelta().y() < 0) diff --git a/src/ui/widgets/uvedit.cpp b/src/ui/widgets/uvedit.cpp index 36607003..6ae402ad 100644 --- a/src/ui/widgets/uvedit.cpp +++ b/src/ui/widgets/uvedit.cpp @@ -749,7 +749,7 @@ void UVWidget::wheelEvent( QWheelEvent * e ) { switch ( e->modifiers() ) { case Qt::NoModifier: - zoom *= 1.0 + ( double( e->angleDelta().y() ) / 960.0 ) / ZOOMUNIT; + zoom *= 1.0 + ( double( e->angleDelta().y() ) / 16.0 ) / ZOOMUNIT; if ( zoom < MINZOOM ) { zoom = MINZOOM;