Open
Bug 1327936
Opened 7 years ago
Updated 2 years ago
dblclick event doesn't fire on e.target if I doubleclick right or middle mouse button
Categories
(Core :: DOM: Events, defect, P3)
Core
DOM: Events
Tracking
()
NEW
People
(Reporter: arni2033, Unassigned)
Details
>>> My Info: Win7_64, Nightly 49, 32bit, ID 20160526082509 STR_1: 1. Open url [1] in a new tab 2. Open console 3.A) Doubleclick on the page using left mouse button 3.B) Doubleclick on the page using right mouse button 3.C) Doubleclick on the page using middle mouse button AR: Advanced logging always captures event on the element. Naive logging only works in scenario (A) ER: Either X or Y X) Naive logging should work in A,B,C: 'dblclick' event fires, it should be applied to e.target Y) Advanced logging shouldn't work in B,C: 'dblclick' event shouldn't fire in scenarios B,C, or should return something different in e.target > [1] data:text/html,<html id="H">%0A<script id="S1">%0A H.addEventListener('dblclick',function(e){%0A console.log('naive logging:');%0A console.log(e);%0A },false);%0A</script>%0A<script id="S2">%0A addEventListener('dblclick',function(e){%0A if(e.target==H){%0A console.log('advanced logging:');%0A console.log(e);%0A };%0A console.log('----');%0A },false);%0A</script>
Updated•7 years ago
|
Priority: -- → P3
Comment 1•5 years ago
|
||
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•