Multi-Touch in Firefox Build

Post bug reports related to either the kiosk ISO or the kiosk wizard here.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
InTheClouds
White ninja
White ninja
Posts: 5
Joined: 15 Sep 2022, 12:00
Distribution: 5.4.0

Multi-Touch in Firefox Build

Post#1 by InTheClouds » 15 Sep 2022, 12:12

Hi

Apologies if asked before, first time poster.

Have a specific set of requirements, quite basic, and all worked fine.....until I attached the device to a touchscreen, where firefox clearly doesn't like touchscreen. I tried the chrome build but this doesn't lock down everything I want and the site I need won't load (even though the white list matches what I had)

I'm just using the basic kiosk software, is there an easy way to enable multitouch on FF or similar?

Thanks

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Multi-Touch in Firefox Build

Post#2 by fanthom » 15 Sep 2022, 15:51

Hello InTheClouds,

Firefox supports 'pinch to zoom' gesture in kiosk 5.4.0.
Does it work for you?

If not then maybe you need a custom build with 3rd party touch drivers. Please generate debug log in the wizard and send it to support@porteus-kiosk.org for verification.

Please also mention which other multi-touch gestures you want to have working.

Thanks
Please add [Solved] to your thread title if the solution was found.

InTheClouds
White ninja
White ninja
Posts: 5
Joined: 15 Sep 2022, 12:00
Distribution: 5.4.0

Multi-Touch in Firefox Build

Post#3 by InTheClouds » 15 Sep 2022, 15:59

TBH, I'm not entirely sure, I just know it works fine in the Chrome build but not Firefox, but apart from that I can get Firefox build set up how I want whereas There's a few things i want to remove from the Chrome Build that I can't.

The thing I try to view is a "virtual tour" for a museum where you can click and drag to move around a location (think similar to Google Street View but inside a building) and can click objects to see text etc.

I will look to do a debug of sorts and see if that shows anything. Can't access the machine currently so will post something tomorrow.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Multi-Touch in Firefox Build

Post#4 by fanthom » 15 Sep 2022, 19:01

Does this feature work with Firefox under Windows?
If yes ten maybe never Firefox version is needed in our system, you could enable free trial of the updates service and check if Firefox 102.x works any better (we have FF 91.x in kiosk 5.4.0).

Thanks
Please add [Solved] to your thread title if the solution was found.

InTheClouds
White ninja
White ninja
Posts: 5
Joined: 15 Sep 2022, 12:00
Distribution: 5.4.0

Multi-Touch in Firefox Build

Post#5 by InTheClouds » 16 Sep 2022, 08:42

Hi

Yes, it does work in Windows, tried the free trial but still no luck (Firefox did update but not sure to what version, have seen posts elsewhere that Firefox on Linux systems is more limited, needing certain configs enabled. (although this was way over my head in how to sort...)

Thanks

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Multi-Touch in Firefox Build

Post#6 by fanthom » 16 Sep 2022, 08:48

"have seen posts elsewhere that Firefox on Linux systems is more limited, needing certain configs enabled."
Please boot Ubuntu and try to get it working under this system (its unlocked so should be easier to do than under kiosk).

If you get it to work then please post what exactly you have changed and we see if its possible to do in our system (custom build may be needed).

Thanks
Please add [Solved] to your thread title if the solution was found.

InTheClouds
White ninja
White ninja
Posts: 5
Joined: 15 Sep 2022, 12:00
Distribution: 5.4.0

Multi-Touch in Firefox Build

Post#7 by InTheClouds » 16 Sep 2022, 10:44

Hi Fanthom

Slightly mistaken on my last post, the fix is to add this line into terminal

echo export MOZ_USE_XINPUT2=1 | sudo tee /etc/profile.d/use-xinput2.sh

The below link is to the video about it. I have tested this myself in ubuntu and Firefox worked fine touchscreen wise after, is this something that can be forced into the Kiosk setup?

https://www.youtube.com/watch?v=GsaH9ZWDWY8

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Multi-Touch in Firefox Build

Post#8 by fanthom » 16 Sep 2022, 17:07

I'm confused now as we have this variable set in kiosk 5.4.0 already.

You can check it over SSH by running this command:

Code: Select all

env | grep XINPUT2
Thanks
Please add [Solved] to your thread title if the solution was found.

InTheClouds
White ninja
White ninja
Posts: 5
Joined: 15 Sep 2022, 12:00
Distribution: 5.4.0

Multi-Touch in Firefox Build

Post#9 by InTheClouds » 07 Oct 2022, 13:04

Hi fanthom

Went to look at this again today after a couple of weeks away from it....

So, have worked out why it wasn't working as expected (to a point)

I was building the kiosk with the option enabled that makes the mouse cursor disappear after a certain amount of time of no input...for some reason enabling this setting seems to stop the touch inputs working as desired under the xinput2 environment. unsure if that's a bug or intended but that was what was stopping it working..!

Thanks

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Multi-Touch in Firefox Build

Post#10 by fanthom » 08 Oct 2022, 09:04

I was able to recreate this problem with 'hide_mouse=5' parameter.
Unfortunately there is no solution to it (we need to hope the upstream devs fixes this problem at some point in the future).

As a workaround you could disable the cursor completely with:
hide_mouse=yes

Thank you for reporting.
Please add [Solved] to your thread title if the solution was found.

Locked