Welcome Guest Search | Active Topics | Sign In | Register

Strange issue with Touch and dropdownlists Options
jkelly
Posted: Wednesday, October 28, 2015 6:13:46 PM
Rank: Advanced Member
Groups: Member

Joined: 2/26/2015
Posts: 53
I have a WPF app that uses EO.Webbrowser and majority of the input is Touch via the TouchScreen monitor.
I've been seeing a weird issue when you touch a dropdownlist, it opens the values correctly but when touching to select a value clicks on the webpage behind the control.
However if you use a mouse, it select and populates with the value correctly.

Any ideas?
I have this currently in production and am curious on what the fix is.
thanks,
eo_support
Posted: Thursday, October 29, 2015 10:11:57 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Please try two things:

1. Try the regular Chrome browser and see if it works or also have the same problem;
2. Try to set this property to "--touch-events=disabled" and see if it works for you;

Thanks!
jkelly
Posted: Thursday, October 29, 2015 10:14:52 AM
Rank: Advanced Member
Groups: Member

Joined: 2/26/2015
Posts: 53
1. Regular chrome browser works.
2. How do I set this property?

Thanks,
jkelly
Posted: Thursday, October 29, 2015 10:46:11 AM
Rank: Advanced Member
Groups: Member

Joined: 2/26/2015
Posts: 53
nevermind i got it.

Thanks,
that worked!!
eo_support
Posted: Thursday, October 29, 2015 10:57:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Glad to hear that it's working for you and sorry that I missed the property link. For the reference of other users, this is the property:

http://www.essentialobjects.com/doc/eo.webbrowser.runtime.extracommandlineargs.aspx

Thanks!

jkelly
Posted: Thursday, October 29, 2015 11:04:14 AM
Rank: Advanced Member
Groups: Member

Joined: 2/26/2015
Posts: 53
So, setting touch-events to disabled works for this issue, but not touch to scroll down the page no longer works.
Is it possible to only enable touch to scroll?
eo_support
Posted: Thursday, October 29, 2015 11:44:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Unfortunately this is not possible. Touch events work by one of the the two ways: touch messages or simulated mouse message. When setting touch-events to disabled, it turns touch messages off and thus relies on the simulated mouse messages (done by Windows). This also means all events that relies on touch messages such as touch scroll and touch zoom will stop working.

Thanks!
jkelly
Posted: Thursday, October 29, 2015 11:55:44 AM
Rank: Advanced Member
Groups: Member

Joined: 2/26/2015
Posts: 53
Ok, as a workaround I was thinking calling EO.WebBrowser.Runtime.ExtraCommandLineArgs = "--touch-events=enabled"; (to keep touch scroll working) which is being set in the public MainWindow method.
And then in UrlChanged event detect the URL where I need dropdownlist to work, "--touch-events=disabled".
But this doesn't seem to be setting correctly. Would this be the correct event to set it?
eo_support
Posted: Thursday, October 29, 2015 1:10:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You won't be able to do that. EO.WebBrowser.Runtime.ExtraCommandLineArgs is only used when the browser engine starts. Changing it after the browser engine has started has no effect.

Thanks!


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.