Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321167

Summary: [Browser] Intermittent scrolling on Windows
Product: [Eclipse Project] Platform Reporter: Paul Lammertsma <pflammertsma>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Grant Gayed <grant_gayed>
Severity: normal    
Priority: P3 CC: zachary2232
Version: 4.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard: stalebug

Description Paul Lammertsma CLA 2010-07-28 14:53:37 EDT
Build Identifier: Eclipse 3.6.0.v20100602, SWT 3.6 (build 3636)

I've implemented an SWT Browser on my Windows 7 machine as follows:

	Browser browser;
	try {
		browser = new Browser(parent, SWT.NONE);
		browser.setUrl(url);
	} catch (final SWTError e) {
		System.out.println(e);
	}

I navigate to a page that contains the following source code:

	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<body>
		<div style="overflow:scroll;position:fixed;width:300px;height:300px;">
			<div style="height:1000px;">SWT won't scroll in this div</div>
		</div>
	</body>
	</html>

It shows up beautifully using an Internet Explorer 8 frame to render the content. Now here's where things get strange: using my scrollwheel, scrolling occurs intermittently. After one or two turns (sometimes more; it seems random), the page stops scrolling for a bit.

If I output the scroll event in SWT, all scroll events are outputted, even when the browser doesn't respond to them:

	browser.addMouseWheelListener(new MouseWheelListener() {
		public void mouseScrolled(final MouseEvent e) {
			System.out.println(e);
		}
	});

The scrolling issue also occurs on a different Windows Vista machine. On Mac, however, it doesn't. It seems the culprit is Internet Explorer 8 because it only happens on Windows platforms.

Although scrolling is intermittent, I can reproduce this issue every time on two Vista machines and a Windows 7 machine.

Reproducible: Always

Steps to Reproduce:
1. Add a Browser object to a Shell.
2. Set the URL to an XHTML Transitional page with a <div style="position:fixed;overflow:scroll;">.
3. Use the mouse wheel to scroll up and down; only occasionally does the page actually scroll.
Comment 1 Grant Gayed CLA 2010-07-29 09:58:59 EDT
And presumably showing this same page in stand-alone IE8 doesn't show this problem?
Comment 2 Paul Lammertsma CLA 2010-07-29 10:11:34 EDT
Of course; it scrolls correctly inside IE8 on all three machines.
Comment 3 Zachary CLA 2010-08-02 11:23:06 EDT
I create a browser with IE7.

It is displaying a silverlight plugin.

I do various things and the backspace key stops working in the browser.

It works again when I hit a button on the swt form.
Comment 4 Leo Ufimtsev CLA 2017-08-03 12:30:50 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 5 Eclipse Genie CLA 2019-11-20 16:52:51 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.