Changing cursor while mouse is down

517 views
Skip to first unread message

kyle

unread,
Oct 30, 2016, 3:12:58 AM10/30/16
to Chromium-discuss
it seems that chrome does not refresh the cursor while the mouse is down?

this works in firefox (if you change -webkit styles to -moz)


<?xml version="1.0" standalone="no" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink">
    <g width="100%" height="100%" id="test_element" 
        onmousedown="document.getElementById('test_element').style.cursor='-webkit-grabbing'"
        onmouseup="document.getElementById('test_element').style.cursor='-webkit-grab'"
        >
        <rect width="100%" height="100%" />
    </g>
</svg>


to reproduce:
render above document

drag anywhere in document, notice that cursor does not change to grabbing


interestingly if you don't move your mouse and let go of the mouse button, it does change to the grabbing cursor until you move the mouse

PhistucK

unread,
Oct 30, 2016, 3:19:38 AM10/30/16
to kyleb...@gmail.com, Chromium-discuss
I cannot reproduce. It changes on mouse down, whether I move or not and changes on mouse up, whether I move or not.
Chrome 54 on Windows 7.
If you see otherwise, you can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Reply all
Reply to author
Forward
0 new messages