Bug 15948 - assigning scrollLeft or scrollTop triggers scroll event even if value is unchanged
Summary: assigning scrollLeft or scrollTop triggers scroll event even if value is unch...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-12 01:44 PST by Marcus Better
Modified: 2012-03-27 14:39 PDT (History)
1 user (show)

See Also:


Attachments
Test case (1.52 KB, text/html)
2007-11-12 01:45 PST, Marcus Better
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Better 2007-11-12 01:44:50 PST
WebKit generates a scroll event whenever the scrollLeft or scrollTop properties are assigned, even if the value did not change.

Firefox (and I think also IE) only fire an event if the scrollLeft/Top value actually changed, not if it is set to the previous value.
Comment 1 Marcus Better 2007-11-12 01:45:36 PST
Created attachment 17197 [details]
Test case
Comment 2 Mustafizur Rahaman( :rahaman) 2012-03-26 22:58:53 PDT
I verified on both Safari & Chrome, and the behaviour seems to be same as FF as it is printing "no scroll event". So, this issue is no more reproducible. Can any one please mark it as INVALID?
Comment 3 Alexey Proskuryakov 2012-03-27 14:39:08 PDT
I think that the test is no longer testing what it was meant to test, because the scroll event became asynchronous. I don't know if the issue still exists.