mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40:54 +00:00
Merge pull request #523 from lightest/CU-2nbq7bc_textboxes_focus_by_mouse
Fix for not being able to focus on TextBoxes;
This commit is contained in:
commit
f4da66eb9b
@ -867,6 +867,9 @@ function DefaultBoxGenerator(styles)
|
||||
let box = new PIXI.Graphics();
|
||||
|
||||
if (this._multiline) {
|
||||
// When fill and alpha both 0 it for some reason ignores pointer events.
|
||||
// But not when hitArea is set directly...
|
||||
box.hitArea = new PIXI.Rectangle(0, 0, w, h);
|
||||
box.interactive = !this._disabled;
|
||||
box.on("pointerdown", () => {
|
||||
this._dom_input.focus();
|
||||
|
Loading…
Reference in New Issue
Block a user