PennController for IBEX › Forums › Support › hide cursor and select by pointing › Reply To: hide cursor and select by pointing
September 2, 2020 at 10:42 am
#6034
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi Peiyao,
What if you try replacing this bit:
e=>getVar("choice").set( e.target.className.replace(/^.*(right|top|bottom|left).*$/,"$1") )._runPromises().then(r)
with this
function(e) { getVar("choice").set( this.className.replace(/^.*(right|top|bottom|left).*$/,"$1") )._runPromises().then(r); }
?
(make sure you don’t lose/add parentheses in the process)
Jeremy