Skip to content

Firefox event issues #8

@Metalmastery

Description

@Metalmastery
  1. Subscribing to "touchend" event ("events" object in a view) brokes "tap" and "pointerup" events in Firefox. RAD simply doesn't fire "tap" and "pointerup" events in this case.
  2. Custom event timeStamp is completely broken in Firefox and returns large numbers. Due to this GestureTracker always fires a "longtap" instead of a "tap". I found that overriding the timeStamp getter works for FirefoxOS and desktop Forefox, but it looks dirty as hell.
customEvent = document.createEvent('MouseEvents');
customEvent.initMouseEvent(type, ...);
// direfox dirty hack
customEvent.__defineGetter__('timeStamp', function (){
    return e.timeStamp;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions