mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40:54 +00:00
Merge pull request #45 from peircej/master
Fix: setReadOnly(false) was having no effect
This commit is contained in:
commit
8cd8a75baa
@ -274,6 +274,8 @@ export class Slider extends util.mix(VisualStim).with(ColorMixin)
|
||||
// halve the opacity:
|
||||
if (readOnly)
|
||||
this._opacity /= 2.0;
|
||||
else
|
||||
this._opacity *= 2.0;
|
||||
|
||||
this._needUpdate = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user