Repository navigation
Create loop region only when control key is pressed - #9712
embarc-gabriel merged 3 commits into
Conversation
|
Hi @embarc-gabriel this one will conflict with this one #9692 I guess |
|
|
||
| function onCtrlPressedChanged() { | ||
| if (!root.ctrlPressed) { | ||
| playRegionController.mouseUp(prv.positionX) |
There was a problem hiding this comment.
It's really hard to understand what's going on here, but the problem is probably in the name of the mouseUp method
There was a problem hiding this comment.
Maybe also because of prv.positionX
We usually use the prv object for private parts throughout the file, but here it's used for MouseArea. For MouseArea, it's not needed at all, we can simply use the property.
There was a problem hiding this comment.
Ok. Sometimes I feel dumb! Thank you for pointing out the MouseArea problem.
I have renamed the function name. Probably is more readable now. @Eism
There was a problem hiding this comment.
I have also removed the positionX variable
cf2c46b to
31c670d
Compare
| @@ -23,7 +24,7 @@ void PlayRegionController::init() | |||
| updateIsActive(); | |||
| } | |||
|
|
|||
| void PlayRegionController::mouseDown(double pos) | |||
| void PlayRegionController::startInteraction(double pos, bool cntrlPressed) | |||
There was a problem hiding this comment.
little typo (just looks strange):
cntrl -> ctrl
97f86b0 to
0c2fb74
Compare
bd7781a to
cd5dc00
Compare
Resolves: #9672
Following the new design, only create the loop region if control key is pressed.
Recommended:
QA: