|
Rank: Advanced Member Groups: Member
Joined: 10/4/2016 Posts: 104
|
Hi,
There seems to be a behavior difference between Chrome and EO in regards to the mouse scrolling.
Say you open a web page showing a scrollbar on the side. Right after it opened, if you scroll up/down using the mouse scroll button, then the page scrolls accordingly but if you move to another window and then return to your web page using ALT Tab or clicking on the title of the window (not within the page), then the mouse scrolling ceased to operate. In order to restore it, you have to click within the page, or kick start the focus by grabbing the slider and moving it up/down. Only then the mouse scrolling button will work.
I have tried several things, such as when my window gets back in focus, it invokes SetFocus() on the webview but none of my attempts to force back the focus within the page worked.
I have observed that behavior with tabbed browser 18.0.65.0
Any idea?
Thank you!
|
|
Rank: Advanced Member Groups: Member
Joined: 10/4/2016 Posts: 104
|
FYI... Just upgraded to EO.18.1.20 and same issue.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi, We tried to invoke SetFocus on the WebView and it seems to work fine. We added the following code into our TabbedBrowser sample application: Inside MainWindow.xaml:
Code: XML
<Window ....
Activated="Window_Activated">
Inside MainWindow.xaml.cs:
Code: C#
private void Window_Activated(object sender, EventArgs e)
{
m_CurPage.WebView.SetFocus();
}
Please let us know if that works for you. Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 10/4/2016 Posts: 104
|
This is what I was doing but it seems that it was not enough. My web form is defined on that window within an eo:WebControl component
Code: XML
<Grid>
<eo:WebControl x:Name="webContainer">
</eo:WebControl>
</Grid>
I just found out that this code is now resolving the problem:
Code: C#
// To be called when the window handles the Activated event
webContainer.Focus();
webContainer.WebView.SetFocus();
Calling either one does not do the trick but calling both of them in this order does.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Thanks for sharing! Focus management is indeed quite a headache. :)
|
|