1
0
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:
Alain Pitiot 2019-04-15 17:01:26 +02:00 committed by GitHub
commit 8cd8a75baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}