Index: sources/gui/qml/components/TouchRect.qml =================================================================== diff -u -r5d211a3d77e20d369319231f5534211caf58fec2 -ra00104f7035f647d911a9e60201ffe635d0714ef --- sources/gui/qml/components/TouchRect.qml (.../TouchRect.qml) (revision 5d211a3d77e20d369319231f5534211caf58fec2) +++ sources/gui/qml/components/TouchRect.qml (.../TouchRect.qml) (revision a00104f7035f647d911a9e60201ffe635d0714ef) @@ -85,9 +85,9 @@ return _root.borderColor } - property bool clickDeboucing: clickDebounceTimer.running // if a click/press happens the timer starts, meaning we have to debounce. - property bool pressDeboucing: pressDebounceTimer.running // if a click/press happens the timer starts, meaning we have to debounce. - property bool pressed : false // this will take care of releases happening during debounced press, therefor no release should happen as well. + property bool clickDebouncing: clickDebounceTimer.running // if a click/press happens the timer starts, meaning we have to debounce. + property bool pressDebouncing: pressDebounceTimer.running // if a click/press happens the timer starts, meaning we have to debounce. + property bool pressed : false // this will take care of releases happening during debounced press, therefor no release should happen as well. } color : _private.color() @@ -135,8 +135,8 @@ enabled : _root.touchable anchors.fill : parent anchors.margins : touchExpanding * -1 - onClicked : { if ( ! _private.clickDeboucing ) { onMouseEventLog("Clicked ") ; _root.clicked (); clickDebounceTimer.start(); } } - onPressed : { if ( ! _private.pressDeboucing ) { onMouseEventLog("Pressed ") ; _private.pressed = true ; _root.pressed (); pressDebounceTimer.start(); } } + onClicked : { if ( ! _private.clickDebouncing ) { onMouseEventLog("Clicked ") ; _root.clicked (); clickDebounceTimer.start(); } } + onPressed : { if ( ! _private.pressDebouncing ) { onMouseEventLog("Pressed ") ; _private.pressed = true ; _root.pressed (); pressDebounceTimer.start(); } } onReleased : { if ( _private.pressed ) { onMouseEventLog("Released ") ; _private.pressed = false; _root.released (); pressDebounceTimer.start(); } } onPressAndHold : { onMouseEventLog("PressAndHold ") ; _root.pressAndHold(); } }