|
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,
|
|
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!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/26/2015 Posts: 53
|
1. Regular chrome browser works. 2. How do I set this property?
Thanks,
|
|
Rank: Advanced Member Groups: Member
Joined: 2/26/2015 Posts: 53
|
nevermind i got it.
Thanks, that worked!!
|
|
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.aspxThanks!
|
|
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?
|
|
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!
|
|
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?
|
|
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!
|
|