app/src/main/assets/js/monocle/src/panels/magic.js
// Returns true if the event WAS NOT cancelled.
Returns true if the event WAS NOT cancelled.
Returns true if the event WAS NOT cancelled .
function dispatch(evtName, trigger) {
    var rr = p.parts.reader.getBoundingClientRect();
    var evtData = {
      trigger: trigger,
      start: { x: p.action.startX, y: p.action.startY },
      end: { x: p.action.endX, y: p.action.endY },
      max: { x: rr.right - rr.left, y: rr.bottom - rr.top }
    }
    return p.reader.dispatchEvent(evtName, evtData, true);
  }
function dispatch ( evtName , trigger ) { var rr = p . parts . reader . getBoundingClientRect ( ) ; var evtData = { trigger : trigger , start : { x : p . action . startX , y : p . action . startY } , end : { x : p . action . endX , y : p . action . endY } , max : { x : rr . right - rr . left , y : rr . bottom - rr . top } } return p . reader . dispatchEvent ( evtName , evtData , true ) ; }
Returns true if the event WAS NOT cancelled.
Returns true if the event WAS NOT cancelled .