You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The textbox border and text changed the color when I have the below code in EACH FRAME, but the text itself was replaced to the center, which is unexpected.
PsychoPy Version
2023.2.3
What OS are your PsychoPy running on?
macOS Silicon
Bug Description
The textbox border and text changed the color when I have the below code in EACH FRAME, but the text itself was replaced to the center, which is unexpected.
if (textbox.contains(mouse)) {
textbox.color = "red";
textbox.borderColor = "red";
} else {
textbox.color = "black";
textbox.borderColor = "black";
}
The detailed description is posted in the forum, please see https://discourse.psychopy.org/t/textbox2-unexpectedly-reset-its-text-in-the-center-in-psychjs-fine-in-psychopy/37700/1
Expected Behaviour
The text won't change its position when textbox.color and textbox.borderColor gets assigned a new color.
Steps to Reproduce
...
Additional context
No response
The text was updated successfully, but these errors were encountered: