Closed Bug 164689 Opened 22 years ago Closed 20 years ago

Changing the cursor on mousedown

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: douglas, Assigned: Biesinger)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721

It should be possible to change the cursor in a mousedown handler.
This makes it possible to use the resize and move cursors on simple objects.

Currently, attempting to change the cursor during mousedown has no visible effect.

Reproducible: Always

Steps to Reproduce:
<html><head><title>Cursor mousedown test</title></head>
<body>
<p>It should be possible to change the cursor in a mousedown handler.
This makes it possible to use the resize and move cursors on simple objects.
</p>
<div id=subject style="cursor: pointer; width: 100px; height: 100px;
    background-color: papayawhip">
Mousedown here to change the cursor.
</div>
<script>
var dom = document.getElementById('subject');

dom.onmousedown = function (e) {
    dom.style.cursor = 'move';
}

dom.onmouseup = function (e) {
    dom.style.cursor = 'pointer';
}

</script>
</body>
</html>

Actual Results:  
No change.

Expected Results:  
The cursor should change to the move (4 arrow) cursor.

It works correctly on IE.
When you move the cursor (dragging), the cursor might change, but it doesn't change on the mousedown.
So the real problem here is that cursors don't get repainted till they get moved....
Assignee: jst → sgehani
Component: DOM Style → XP Apps
OS: Windows 2000 → All
QA Contact: ian → paw
Hardware: PC → All
Attached file testcase
well I guess this should be confirmed then?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Core → Mozilla Application Suite
I get the expected results when trying the provided testcase. I also get the
expected results in at least 4 other pages relying on immediate cursor change.
E.g.: grab the "Position" pseudo-title bar of the form (top-right) at the page
http://www.gtalbot.org/HTMLJavascriptCSS/Positioning.html

Possible explanations (mere speculation): the patches in bug 38447 applied,
checked in.

Mozilla 1.8b build 2005011308 under XP Pro SP2 here.

Can someone else try the testcases ... ?
Assignee: samir_bugzilla → cbiesinger
I fixed this in bug 263671 for 1.8alpha6.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: