Skip to content

Commit

Permalink
Fixed mouse wheel sensitivity in walk mode and in the UV editor
Browse files Browse the repository at this point in the history
  • Loading branch information
fo76utils committed Jun 9, 2024
1 parent 09161dc commit 2b943b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/glview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/ui/widgets/uvedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b943b4

Please sign in to comment.