Fix mouse wheel on checkbox. (#205)

This commit is contained in:
Arthur Sonzogni
2021-09-16 00:47:31 +02:00
committed by GitHub
parent 7d4452f45c
commit 37b44e7557
4 changed files with 21 additions and 13 deletions

View File

@@ -103,9 +103,6 @@ class RadioboxBase : public ComponentBase {
}
bool OnMouseEvent(Event event) {
if (!CaptureMouse(event))
return false;
if (event.mouse().button == Mouse::WheelDown ||
event.mouse().button == Mouse::WheelUp) {
return OnMouseWheel(event);