Results 1 to 7 of 7

Thread: Firefox click and contextmenu events

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-16385 in 6.0.1.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2014
    Location
    Graz
    Posts
    21

    Default Firefox click and contextmenu events

    Hi, there is a bug in Firefox version (at least in the latest version 38.0.5).

    Ext version tested:
    • Ext 5.5.1.1.451
    Browser versions tested against:
    • FF 38.0.5
    • Chrome 44
    Description:
    • contextmenu event is overridden by click event on the same element
    Steps to reproduce the problem:
    • Firefox: Left click on the button
    • Firefox: Right click on the button
    • Chrome: Left click on the button
    • Chrome: Right click on the button
    The result that was expected:
    • Firefox: Alert with click
    • Firefox: Alert with context
    • Chrome: Alert with click
    • Chrome: Alert with context
    The result that occurs instead:
    • Firefox: Alert with click
    • Firefox: Alert with click
    • Chrome: Alert with click
    • Chrome: Alert with context
    With ExtJS 4.2.3.1255 the test case works like it should.


  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report and test case. This issue has been reported and is being tracked as EXTJS-16385.
    https://www.sencha.com/forum/showthread.php?296729

    It was recently fixed, but the change hasn't been merged yet.

  3. #3

    Default

    Hi Gary, I can see its fixed in version 6. Is there any override available so, i can get it working in version 5.1 please.

    Thanks in advance.

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    This has also been fixed in 5.1.2. There is an override on the bug ticket to which support subscribers can gain access by opening a support ticket.

  5. #5

    Default

    Ok got it.

    Thanks Gary

  6. #6
    Sencha Premium User
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    337

    Default

    We ran into the same issue. Override is below:

    Code:
    Ext.define('EXTJS-16385.event.publisher.Dom', {
        override: 'Ext.event.publisher.Dom',
    
        isEventBlocked: function(e) {
            var me = this,
                type = e.type,
                self = Ext.event.publisher.Dom,
                now = Ext.now();
    
            if (Ext.isGecko && e.type === 'click' && e.button === 2) {
                return true;
            }
    
            return (me.blockedPointerEvents[type] && e.pointerType !== 'mouse') ||
                (me.blockedCompatibilityMouseEvents[type] &&
                    (now - self.lastScreenPointerEventTime < 1000)) ||
                (Ext.supports.TouchEvents && e.self.mouseEvents[e.type] &&
                    Math.abs(e.pageX - self.lastTouchStartX) < 15 &&
                    Math.abs(e.pageY - self.lastTouchStartY) < 15 &&
                    (Ext.now() - self.lastTouchEndTime) < 1000);
        }
    });

  7. #7

    Default

    Thank you very much droessner,

    I will give it a try.

Similar Threads

  1. Set property on Events.ContextMenu
    By A.Rothe in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 1 Dec 2011, 7:06 AM
  2. blocking firefox's contextmenu
    By galrub in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 4 Jan 2009, 5:14 AM
  3. [2.0.2][INFO REQ] Tree ContextMenu Bug in FireFox
    By manzanitatech in forum Ext 2.x: Bugs
    Replies: 11
    Last Post: 19 Mar 2008, 12:11 PM
  4. Replies: 0
    Last Post: 3 Mar 2008, 1:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •