Class zebkit.web.PointerEventUnifier <zebkit.web>

Pointer event unifier is special class to normalize input events from different pointer devices (like mouse, touch screen, pen etc) and various browsers. The class transform all the events to special neutral pointer event.

Constructor:
zebkit.web.PointerEventUnifier (element, destination)

Parameters:
  • element <DOMElement>

    a DOM element to normalize pointer events

  • destination <Object>

    a destination object that implements number of pointer events handlers:

     {
         $pointerPressed     : function(e) { ... },
         $pointerReleased    : function(e) { ... },
         $pointerClicked     : function(e) { ... },
         $pointerMoved       : function(e) { ... },
         $pointerDragStarted : function(e) { ... },
         $pointerDragged     : function(e) { ... },
         $pointerDragEnded   : function(e) { ... }
     }