Scroll implemented

This commit is contained in:
Sonaion
2019-12-16 19:23:56 +01:00
parent 1c29d564c7
commit 67a72fe487
14 changed files with 75 additions and 13 deletions

View File

@@ -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;
}
}