psychojs
psychojs copied to clipboard
Text Component contains method not working with mouse clicks
See the URL below for an example. In the example, a valid click of either the "Click Me!" text or the polygon rect should end the trial. The text component that does not register valid clicks with the mouse, and the trial does not end when the text component is clicked. The polygon component works correctly to end the trial when clicked.
URL to example https://pavlovia.org/run/dvbridges/textcontains/html/
But there is a workaround where we put a (possibly transparent) box behind the text