LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Embedded .NET WebBrowser - Unable To Switch Off Elastic Overflow

Hi,

 

I'm using a fully locked down .NET WebBrowser within a .NET control which runs on a LabVIEW touchscreen application built as a maximised .exe.

 

It's locked down in the sense that all interaction between a user and the WebBrowser is via separate buttons (for scrolling up and down), so any kind of touches on the Web Browser (or mouse clicks) do nothing except..........

 

If you use the separate buttons to scroll to the top or bottom of the HTML, and then you drag your finger down on the WebBrowser control when at the top, or drag your finger up when at the bottom, the whole LabVIEW application gets slightly dragged down/up respectively revealing a slither of the desktop with elastic type mechanics - so you remove your finger and it snaps back to filling the whole screen. (I'm describing as unfortunately I don't have any facility to provide a screenshot of the behaviour).

 

My initial investigations (mostly on CSS,HTML and .NET help articles) have led me to some CSS configuration items such as 'overflow-y' and 'overscroll-behavior' but with no success - and even though I'm not sure that this is strictly a LabVIEW query rather than .NET or web technologies, I thought I'd post on here on the off chance that someone else may have seen this behaviour.

 

Here is my current CSS config BTW.

 

html{
overflow: hidden;
height: 100%;
-ms-user-select: none;
user-select:none;
touch-action: none;
scroll: no;
pointer-events: none;
overflow-y: hidden;
overscroll-behavior: contain;
}

body {
background-color: #FFFFFF;
font-family: "Noto Sans", "Noto Sans CJK", sans-serif;
font-size: 24px;
height: 100%;
overflow: auto;
}
David Clark
CLA | CTA
Genesee Technologies Ltd
Hampshire, England
0 Kudos
Message 1 of 2
(176 Views)

Just to let anyone who finds this know, the solution has been found - it's an Edge setting.

 

Go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Wisp\Touch and set Bouncing to 0.

David Clark
CLA | CTA
Genesee Technologies Ltd
Hampshire, England
0 Kudos
Message 2 of 2
(102 Views)