开发者

mouse wheel scrolling work with f5 in app but don't work on web

开发者 https://www.devze.com 2022-12-30 06:38 出处:网络
Good day! I have a web application on Silverlight 3. on ManePage I have a <ScrollViewerx:Name=\"sV\" MouseWheel=\"sV_MouseWheel\" VerticalScrollBarVisibility=\"Auto\" HorizontalScrollBarVisibilit

Good day! I have a web application on Silverlight 3. on ManePage I have a

<ScrollViewer  x:Name="sV" MouseWheel="sV_MouseWheel" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">

with such code:

private void sV_MouseWheel(object sender, 开发者_开发问答MouseWheelEventArgs e)
        {
            var offset = sV.VerticalOffset;
            sV.ScrollToVerticalOffset(offset + (e.Delta * -0.5));
        }

When I press F5 button to debug my application, mouse wheel scrolling works well, but when I press F6 and then choose Web.Project prperty Debug->Start New Instance or publish my project on site, mouse wheel scrolling doesn't work :(

what can I do?


oh, it works in IE, but doesn't work in other browsers

0

精彩评论

暂无评论...
验证码 换一张
取 消