[Webkit-unassigned] [Bug 10457] New: Disabling of default action in mouseup handler disables mousemove event
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Thu Aug 17 04:45:26 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=10457
Summary: Disabling of default action in mouseup handler disables
mousemove event
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh PowerPC
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: mjuhos at kerio.com
Overview Description:
Problem is caused by disabling of default browser action in "onmouseup"
handler. There are two ways how do that:
1) Set return value of "onmouseup" handler to "false" (see Test case)
2) Call method event.preventDefault() (see Test case modification)
Disabling of default action is affecting behavior of other events - but they
couldn't be affected (try test case in Firefox). So that after mouseup isn't
triggered "mousemove" event in this case.
Steps to Reproduce:
1) Open test case in Safari (WebKit)
2) Move mouse up and down over text
3) Click on some text in testcase
4) Move mouse up and down over text
Actual Results:
When I moved mouse, items are not highlited.
Expected Results:
When I moved mouse, items will be highlited.
Build Date & Platform:
Build 2002-008-17 on Mac OS 10.4.7
Test case:
<html>
<script>
function highlight(item) {
item.style.backgroundColor = (item.style.backgroundColor == "red") ? '' :
'red';
}
onmouseup = function() {
return false;
}
</script>
<body>
<div onmouseover="highlight(this)" onmouseout="highlight(this)">Item1</div>
<div onmouseover="highlight(this)" onmouseout="highlight(this)">Item2</div>
<div onmouseover="highlight(this)" onmouseout="highlight(this)">Item3</div>
<div onmouseover="highlight(this)" onmouseout="highlight(this)">Item4</div>
</body>
</html>
Test case modification:
onmouseup = function(event) {
event.preventDefault();
}
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list