Closed
Bug 149463
Opened 24 years ago
Closed 15 years ago
It is nigh on impossible to work out the point of origin of an event in its source element
Categories
(Core :: DOM: Events, enhancement, P4)
Core
DOM: Events
Tracking
()
People
(Reporter: chris, Unassigned)
Details
This will be marked as a duplicate bug of others i am sure BUT with the current
event system its impossible to find out where an event has originated from its
target (e.g. the coordinates within an HTMLImageElement). This is prohibitive
to all sorts of coding (unless you make all your elements position:absolute and
use the layerX/layerY properties). I can think of a number of very important
situations where this would be absolutely critical (not to mention a number of
unimportant applications). Without these properties (IE has
event.offsetX/event.offsetY) most DHTML apps that do anything more complex than
mouseovers will suffer (mine are right now :-( ) (unless as i said everything
is pos:absolute; which is ridiculous)
| Reporter | ||
Comment 1•24 years ago
|
||
(PS I am currently using event.clientX-event.layerX but this does not guarentee
results for multiple nesting, nor do i have which layer the layerX is relative
to to hack that, though i guess a while loop looking at offset properties might
work)
Comment 2•24 years ago
|
||
Confirming enhancement request, I cant find anything about this in the spec. As
I understand this is request for a property of an event to specify coordinates
relative to the currentTarget (offset from its top,left coordinates).
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P4
Updated•20 years ago
|
Assignee: joki → events
OS: Windows 2000 → All
QA Contact: vladimire → ian
Hardware: PC → All
Updated•17 years ago
|
Assignee: events → nobody
QA Contact: ian → events
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•