1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-11 16:18:10 +00:00

visual/ButtonStim: make sure isClicked tracks left mouse button presses only

This commit is contained in:
Sotiri Bakagiannis 2021-05-10 16:14:09 +01:00
parent 335f7dfece
commit 52b53376d8

View File

@ -92,7 +92,7 @@ export class ButtonStim extends TextBox
*/
get isClicked()
{
return this.listener.isPressedIn(this);
return this.listener.isPressedIn(this, [1, 0, 0]);
}
}