Welcome Guest Search | Active Topics | Sign In | Register

Mouse scrolling not resumed Options
Christian Porzio
Posted: Thursday, March 22, 2018 4:55:08 PM
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!
Christian Porzio
Posted: Friday, March 23, 2018 11:05:19 AM
Rank: Advanced Member
Groups: Member

Joined: 10/4/2016
Posts: 104
FYI... Just upgraded to EO.18.1.20 and same issue.
eo_support
Posted: Friday, March 23, 2018 3:40:40 PM
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!

Christian Porzio
Posted: Friday, March 23, 2018 4:20:45 PM
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.

eo_support
Posted: Friday, March 23, 2018 4:46:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Thanks for sharing! Focus management is indeed quite a headache. :)


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.