01-29-2025 07:25 AM
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;
}
01-30-2025 05:22 AM
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.