Closed Bug 309756 Opened 19 years ago Closed 19 years ago

wrong SVG target found (always topmost svg:svg)

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 108310

People

(Reporter: kohl, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050922 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050922 Firefox/1.6a1

Pointer events always finding the target Pic from
 <svg:svg id="Pic">
instead of underlying SVG objects.

My target and event handling was working at least up to Build 2005072109


Reproducible: Always

Steps to Reproduce:
1.starting the attached file (complete XML file including script and styles)
with an actual build with SVG enabled
2.clicking and moving in the window should give what's described in "Actual Results"
3. looking at the results, when using a build up to 2005072109 will show the
differences

Actual Results:  
action 2 (clicking) will give and output the id of evt.target. This should be ""
at the 3 drawing domains, and "Pic" only at the pure white areas outside;
but is giving "Pic" elsewhere.
Moving the pointer to another of the three drawing areas (yellow domains) is
expected to give the event "onmouseover" (output: "change drawing sight to <i>"  
In actual builds thats happening never.

Expected Results:  
output of older builds like: 
  change drawing sight to 0
  change drawing sight to 0
  event target id=''
  change drawing sight to 2
  event target id=''
  change drawing sight to 0
  change drawing sight to 1
  event target id=''
  change drawing sight to 2
  event target id='Pic'
  event target id=''

actual output only:
  event target id='Pic'
  event target id='Pic'
  event target id='Pic'


the xml-file is a very shortened version.
For the original, no SVG action is possible - the outer <svg:svg id='Pic'>
should be found never.

There must be some crucial change in event handling:
 - <svg:g onmouseover=".."> ... onmouseover never activated
 - setMousePoint activated by 
      isPic = document.getElementById('Pic');
      isPic.addEventListener("click", SetMousePoint, false);
   is giving no other target than "Pic"
Assignee: general → general
Component: General → SVG
Product: Mozilla Application Suite → Core
QA Contact: general → ian
Version: unspecified → Trunk
Pointer events have been broken for SVG as fallout from bug 108310.
Fixed by svg checkin for bug 108310.


*** This bug has been marked as a duplicate of 108310 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: