1
0
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:
lgtst 2022-04-07 00:00:17 +03:00
parent d0ed55758b
commit e8d50104c4
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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: {