[Webkit-unassigned] [Bug 14344] New: Setting cursor dynamically on a onmousedown should be set without having to move the cursor
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jun 23 14:26:43 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14344
Summary: Setting cursor dynamically on a onmousedown should be
set without having to move the cursor
Product: WebKit
Version: 522+ (nightly)
Platform: PC
URL: http://www.gtalbot.org/DHTMLSection/Positioning.html
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: browserbugs at gtalbot.org
Steps to reproduce:
1. Load provided URL
2. Mousedown over the "Position" pseudo-titlebar of the form and hold the
mousedown without moving the mouse
Actual results:
You see a custom hand-grab cursor which displays an open hand with 5 fingers
Expected results:
The custom hand-grab cursor displaying an open hand with 5 fingers should
become, should change into a custom hand-grabbing cursor which display a closed
hand
Relevant code involved:
<body onload="init();">
(...)
<div id="idTitlePosition" title="You can drag and move this position control
box form">Position<img (...)></div>
function init()
{
if (document.addEventListener)
{
document.getElementById("idTitlePosition").addEventListener("mousedown",
Activate, false);
(...)
In Position.css (around line 43):
#idTitlePosition
{
(...)
cursor: url("../GRAPHICS/ICO/grab.cur"), move;
}
In Position.js (around line 230):
function Activate (evt)
{
TextBoxToBeMoved = (evt) ? evt.currentTarget : window.event ?
event.srcElement : null;
TextBoxToBeMoved.style.cursor = "url('../GRAPHICS/ICO/grabbing.cur'),
-moz-grabbing";
Notes:
- the provided URL is not a reduced testcase.
- MSIE 6, MSIE 7, Firefox 2.0.0.4 get the expected results.
- Mozilla used to have a similar bug:
Mozilla-Bug 293510
dynamic changes of 'cursor' property don't work until mouse moves
https://bugzilla.mozilla.org/show_bug.cgi?id=293510
--
Configure bugmail: http://bugs.webkit.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