Closed
Bug 343340
Opened 18 years ago
Closed 17 years ago
mousemove no longer functions with very large rectangles
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: k_lindsey, Unassigned)
Details
Attachments
(1 file)
4.25 KB,
image/svg+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 It looks like there is a potential overflow issue with x,y,width,height when defining rectangles (I did not try other shapes). If these values become too large, mousemove event handlers associated with that shape no longer fire. Reproducible: Always Steps to Reproduce: 1. define a large rectangle and its associated mousemove handler like so: <rect x="-32767" y="-32767" width="65535" height="65535" fill="green" pointer-events="fill" onmousemove="update(evt)"/> 2. save as an SVG file 3. open the SVG file 4. move the mouse over green shape Actual Results: The "update" function never fires. Expected Results: Expected "update" function to fire If you decrease the values used in the rectangle above, the mousemove event will fire. For example, the following definition will work correctly: <rect x="-16384" y="-16384" width="32767" height="32767" fill="green" pointer-events="fill" onmousemove="update(evt)"/>
The circles should respone to mousemove events. Uncomment the commented out <rect> and then comment out the following <rect>. Reopen the file and now the circles will respond to mousemove events.
Comment 2•18 years ago
|
||
I think this is probably a duplicate of bug 315383.
Updated•18 years ago
|
Attachment #227826 -
Attachment mime type: image/xml+svg → image/svg+xml
Also look at Bug 381875
Comment 4•17 years ago
|
||
Fixed by check in for bug 384681
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•