mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Refactor: unified logic for notyfing CIntObjs about left/right mouse click events;
Added support for middle-click;
This commit is contained in:
@ -623,7 +623,7 @@ void CSlider::clickLeft(tribool down, bool previousState)
|
||||
return;
|
||||
// if (rw>1) return;
|
||||
// if (rw<0) return;
|
||||
slider->clickLeft(true, slider->pressedL);
|
||||
slider->clickLeft(true, slider->mouseState(EIntObjMouseBtnType::LEFT));
|
||||
moveTo(rw * positions + 0.5);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user