mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-13 20:00:32 +02:00
Scroll implemented
This commit is contained in:
@@ -40,3 +40,11 @@ void IntelliToolPen::onMouseMoved(int x, int y){
|
||||
}
|
||||
IntelliTool::onMouseMoved(x,y);
|
||||
}
|
||||
|
||||
void IntelliToolPen::onWheelScrolled(int value){
|
||||
IntelliTool::onWheelScrolled(value);
|
||||
this->penWidth+=value;
|
||||
if(this->penWidth<=0){
|
||||
this->penWidth=1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user