StrokesPlus.net Forum
»
Bugs or Issues
»
Bug Reports
»
Gesture for "hand" detection doesn't work in Firefox anymore
Rank: Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 27
Thanks: 2 times
|
The code below for triggering something based on if the cursor is a "hand" doesn't work in Firefox anymore, but it still works in Chrome and Edge.
var open_link_in_background = false; var clicked = false;
sp.ConsumePhysicalInput(true);
for(var Y = action.Start.Y; Y <= action.Start.Y + 6; Y += 2) { sp.MouseMove(new Point(action.Start.X, Y)); sp.Sleep(20); if(sp.GetCurrentMouseCursor() == "Hand") { if(open_link_in_background) { sp.MouseClick(new Point(action.Start.X, Y), MouseButtons.Middle, true, true); } else { sp.SendControlDown(); sp.Sleep(100); sp.MouseClick(new Point(action.Start.X, Y), MouseButtons.Left, true, true); sp.SendControlUp(); } clicked = true; break; //Stop looping } }
if(!clicked) { sp.SendKeys("^l"); // Send CTRL+L keystroke }
sp.ConsumePhysicalInput(false); sp.MouseMove(action.End);
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
I just tested in Firefox 89.0.2 (64-bit) and it works fine for me.
Do you have any extensions or custom settings which may be affecting the presentation (style) of the hand/pointer cursor?
|
|
|
|
Rank: Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 27
Thanks: 2 times
|
Strange, I disabled all extensions, put on the default theme, removed the custom userChrome file I've made and checked all settings relevant to this; still doesn't work.
But I should say that it's not only the "hand" trigger of this code that doesn't work, I put "ctrl+L" in the code to focus the URL bar if the cursor is not on a link. So that doesn't require a hand cursor, and it doesn't work either. Anyway this started recently, not sure when.
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
It sounds like possibly the script isn't executing. Do you see a message if you put this at the top of the script? Code:sp.MessageBox("Browser Script", "Hi");
|
|
|
|
Rank: Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 27
Thanks: 2 times
|
|
|
|
|
Rank: Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 27
Thanks: 2 times
|
Strangely now that I've put the code above it and then deleted it the same code works...
|
|
|
|
Rank: Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 27
Thanks: 2 times
|
Oh... the gesture was set on the empty "steps" tab when it didn't work, when set on script tab it works... my bad.
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
Ah, yeah whichever tab is selected (Steps or Script) is the one that gets executed.
|
|
|
|
StrokesPlus.net Forum
»
Bugs or Issues
»
Bug Reports
»
Gesture for "hand" detection doesn't work in Firefox anymore
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close