Closed Bug 678193 Opened 14 years ago Closed 6 years ago

CSS transform box with onclick handler does not generate click event

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gmoulin.dev, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0a2) Gecko/20110810 Firefox/7.0a2 Build ID: 20110810042009 Steps to reproduce: I have an html webapp tuned for mobile use and i found a weird bug. My items are displayed using isotope jquery plugin and arranged with "css transform translate". The javascript functions are binded to the buttons using jquery delegate function on a wrapper div. I added tests for 'click' event and 'live click' event. See http://jsfiddle.net/gmoulin/gVGM6/embedded/result/ as example. (you can use http://jsfiddle.net/gmoulin/gVGM6 to test with) Test on Samsung Galaxy S2 under Firefox and Firefox Beta. Actual results: For the first item the "buttons" are working, for the rest the first one's are called or (in the example) nothing append. Still the buttons are in active mode when clicked. Expected results: Buttons should call back the correct javascript binded functions. Buttons behave "correctly" under iphone4 Safari, Android opera mini / dolphin / native browser. (only graphical bug, clicks are working)
With last Firefox Beta event the first item buttons are completely broken.
Attached file testcase
Confirmed, when tapping on the green box, 'click' text should appear.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Attached file testcase2
Using some iframes with the testcase as url.
OS: Linux → All
Hardware: x86 → All
Version: Firefox 5 → Trunk
Summary: css transform and javascript bind equals no function call → CSS transform box with onclick handler does not generate click event
This is probably because we get getBoundingClientBox to figure out where to click. We need something different that keeps transforms in mind for Fennec.
This seems to work fine in Fennec Native.
In current Fennec Native, I can't see the green box in the second iframe of the second testcase, though (until I pinch zoom), so I filed bug 765677 for that.
Closing all opened bug in a graveyard component
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: