mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 18:50:54 +00:00
added isDragging readonly property to visual stims.
This commit is contained in:
parent
a445416d1f
commit
968c52505d
@ -103,6 +103,14 @@ export class VisualStim extends util.mix(MinimalStim).with(WindowMixin)
|
||||
this._needPixiUpdate = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not stimuli is being dragged by pointer. Works in conjunction with draggable attribute.
|
||||
*/
|
||||
get isDragging()
|
||||
{
|
||||
return this._associatedPointerId !== undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Force a refresh of the stimulus.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user