gnome/extensions/dash-to-dock@micxgx.gmail.com/docking.js
/**
     * Returns whether the global pointer is considered inside of the dock
     * area or not.
     */
Returns whether the global pointer is considered inside of the dock
area or not.
Returns whether the global pointer is considered inside of the dock area or not .
_isPointerInZone() {
        let [x, y, mods] = global.get_pointer();
            switch (this._position) {
            case St.Side.LEFT:
                if (x <= this.staticBox.x2 &&
                    x >= this._monitor.x &&
                    y >= this._monitor.y &&
                    y <= this._monitor.y + this._monitor.height) {
                    return true;
                }
                break;
            case St.Side.RIGHT:
                if (x >= this.staticBox.x1 &&
                    x <= this._monitor.x + this._monitor.width &&
                    y >= this._monitor.y &&
                    y <= this._monitor.y + this._monitor.height) {
                    return true;
                }
                break;
            case St.Side.TOP:
                if (x >= this._monitor.x &&
                    x <= this._monitor.x + this._monitor.width &&
                    y <= this.staticBox.y2 &&
                    y >= this._monitor.y) {
                    return true;
                }
                break;
            case St.Side.BOTTOM:
                if (x >= this._monitor.x &&
                    x <= this._monitor.x + this._monitor.width &&
                    y >= this.staticBox.y1 &&
                    y <= this._monitor.y + this._monitor.height) {
                    return true;
                }
                break;
            }
        return false;
    }
_isPointerInZone ( ) { let [ x , y , mods ] = global . get_pointer ( ) ; switch ( this . _position ) { case St . Side . LEFT : if ( x <= this . staticBox . x2 && x >= this . _monitor . x && y >= this . _monitor . y && y <= this . _monitor . y + this . _monitor . height ) { return true ; } break ; case St . Side . RIGHT : if ( x >= this . staticBox . x1 && x <= this . _monitor . x + this . _monitor . width && y >= this . _monitor . y && y <= this . _monitor . y + this . _monitor . height ) { return true ; } break ; case St . Side . TOP : if ( x >= this . _monitor . x && x <= this . _monitor . x + this . _monitor . width && y <= this . staticBox . y2 && y >= this . _monitor . y ) { return true ; } break ; case St . Side . BOTTOM : if ( x >= this . _monitor . x && x <= this . _monitor . x + this . _monitor . width && y >= this . staticBox . y1 && y <= this . _monitor . y + this . _monitor . height ) { return true ; } break ; } return false ; }
Returns whether the global pointer is considered inside of the dock
 area or not.
Returns whether the global pointer is considered inside of the dock area or not .