mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-31 00:04:26 -04:00 
			
		
		
		
	Fix bug that didn't let the magnifying glass expand horizontally using alt
This commit is contained in:
		| @ -157,8 +157,8 @@ void MagnifyingGlass::wheelEvent(QWheelEvent *event) | ||||
|             heightDown(); | ||||
|         break; | ||||
|     // size width | ||||
|     case Qt::AltModifier: | ||||
|         if (event->angleDelta().y() < 0) | ||||
|     case Qt::AltModifier: // alt modifier can actually modify the behavior of the event delta, so let's check both x & y | ||||
|         if (event->angleDelta().y() < 0 || event->angleDelta().x() < 0) | ||||
|             widthUp(); | ||||
|         else | ||||
|             widthDown(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user