mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40:54 +00:00
added depth parameter and pointer-events:"none" for TextBox;
This commit is contained in:
parent
d0ed55758b
commit
e8d50104c4
@ -81,6 +81,7 @@ export class Slider extends util.mix(VisualStim).with(ColorMixin, WindowMixin)
|
||||
lineColor,
|
||||
contrast,
|
||||
opacity,
|
||||
depth,
|
||||
style,
|
||||
ticks,
|
||||
labels,
|
||||
@ -99,7 +100,7 @@ export class Slider extends util.mix(VisualStim).with(ColorMixin, WindowMixin)
|
||||
} = {},
|
||||
)
|
||||
{
|
||||
super({ name, win, units, ori, opacity, pos, size, clipMask, autoDraw, autoLog });
|
||||
super({ name, win, units, ori, opacity, depth, pos, size, clipMask, autoDraw, autoLog });
|
||||
|
||||
this._needMarkerUpdate = false;
|
||||
|
||||
|
@ -412,6 +412,7 @@ export class TextBox extends util.mix(VisualStim).with(ColorMixin)
|
||||
text: this._text,
|
||||
height: multiline ? (height_px - 2 * padding_px) + "px" : undefined,
|
||||
width: (width_px - 2 * padding_px) + "px",
|
||||
pointerEvents: "none"
|
||||
},
|
||||
// box style properties eventually become PIXI.Graphics settings, so same syntax applies
|
||||
box: {
|
||||
|
Loading…
Reference in New Issue
Block a user