Zoom in to the double-clicked position.
359251
public void onDoubleClick(DoubleClickEvent event) {
		//Check if there was a last click that was handled in this class.
		if (null != lastClickPosition) {
			// Zoom in on the event location.
			Bbox bounds = mapWidget.getMapModel().getMapView().getBounds();
			double x = lastClickPosition.getX() - (bounds.getWidth() / 4);
			double y = lastClickPosition.getY() - (bounds.getHeight() / 4);
			Bbox newBounds = new Bbox(x, y, bounds.getWidth() / 2, bounds.getHeight() / 2);
			mapWidget.getMapModel().getMapView().applyBounds(newBounds, ZoomOption.LEVEL_CHANGE);
		}
	}
1168865
def ms_zoom_in(self, viewer, event, data_x, data_y, msg=False):
        
        if not self.canzoom:
            return True

        if not (event.state == 'down'):
            return True

        with viewer.suppress_redraw:
            viewer.panset_xy(data_x, data_y)

            if self.settings.get('scroll_zoom_direct_scale', True):
                zoom_accel = self.settings.get('scroll_zoom_acceleration', 1.0)
                # change scale by 100%
                amount = self._scale_adjust(2.0, 15.0, zoom_accel, max_limit=4.0)
                self._scale_image(viewer, 0.0, amount, msg=msg)
            else:
                viewer.zoom_in()

            if hasattr(viewer, 'center_cursor'):
                viewer.center_cursor()
            if msg:
                viewer.onscreen_message(viewer.get_scale_text(),
                                        delay=1.0)
        return True
162852
function (newMin, newMax) {

		// Prevent pinch zooming out of range. Check for defined is for #1946.
		if (!this.allowZoomOutside) {
			if (defined(this.dataMin) && newMin <= this.dataMin) {
				newMin = UNDEFINED;
			}
			if (defined(this.dataMax) && newMax >= this.dataMax) {
				newMax = UNDEFINED;
			}
		}

		// In full view, displaying the reset zoom button is not required
		this.displayBtn = newMin !== UNDEFINED || newMax !== UNDEFINED;
		
		// Do it
		this.setExtremes(
			newMin,
			newMax,
			false, 
			UNDEFINED, 
			{ trigger: 'zoom' }
		);
		return true;
	}
864748
def _handle_double_click(self, event):
        
        if event.get_button()[1] == 1:  # Left mouse button
            path_info = self.tree_view.get_path_at_pos(int(event.x), int(event.y))
            if path_info:  # Valid entry was clicked on
                path = path_info[0]
                iter = self.tree_store.get_iter(path)
                state_model = self.tree_store.get_value(iter, self.MODEL_STORAGE_ID)

                # Set focus to StateModel
                selection = self._selected_sm_model.selection
                selection.focus = state_model

                # Toggle collapse status if applicable for this kind of state
                if self.view.row_expanded(path):
                    self.view.collapse_row(path)
                else:
                    if isinstance(state_model, ContainerStateModel) or \
                                    isinstance(state_model, LibraryStateModel) and self.show_content(state_model):
                        self.view.expand_to_path(path)
93432
def click(self, x, y):
        
        print 'click at', x, y
        self._input_left_mouse(x, y)
1272929
function(opts) {
				// Check the mode on mouseup
				if(svgCanvas.getMode() == "hello_world") {
					var zoom = svgCanvas.getZoom();
					
					// Get the actual coordinate by dividing by the zoom value
					var x = opts.mouse_x / zoom;
					var y = opts.mouse_y / zoom;
					
					var text = "Hello World!\n\nYou clicked here: " 
						+ x + ", " + y;
						
					// Show the text using the custom alert function
					$.alert(text);
				}
			}
949585
def mouseDoubleClickEvent(self, event):
        """"""
        if self.mode == BuildMode:
            if event.button() == QtCore.Qt.LeftButton:
                index = self.indexAt(event.pos())
                self.edit(index)
752956
def get_mouse_pos(self, pos):
        """"""
        position = np.asarray(self._normalize(pos))
        zoom = np.asarray(self._zoom_aspect())
        pan = np.asarray(self.pan)
        mouse_pos = ((position / zoom) - pan)
        return mouse_pos
975069
@Override
	public void doubleClick() throws WidgetException {
		try {
			Actions builder = new Actions(getGUIDriver().getWrappedDriver());
	        synchronized (InteractiveElement.class) {
	            getGUIDriver().focus();
	            builder.doubleClick(getWebElement()).build().perform();
	        }
		} catch (Exception e) {
			throw new WidgetException("Error while double clicking element",
					getByLocator(), e);
		}
	}
609779
def wheelEvent( self, event ):
        
        # check to see if the system is
        # currently in view mode
        if ( self.inViewMode() ):
            if ( event.delta() < 0 ):
                self.zoomOut()
            else:
                self.zoomIn()
            
            event.accept()
            self.mainView().setFocus()
        
        else:
            super(XNodeScene, self).wheelEvent(event)
1350803
function _doubleClickHandler(e) {
      var pos,
          ratio,
          animation;

      if (_settings('mouseEnabled')) {
        ratio = 1 / _settings('doubleClickZoomingRatio');

        _self.dispatchEvent('doubleclick',
            sigma.utils.mouseCoords(e, _startMouseX, _startMouseY));

        if (_settings('doubleClickEnabled')) {
          pos = _camera.cameraPosition(
            sigma.utils.getX(e) - sigma.utils.getCenter(e).x,
            sigma.utils.getY(e) - sigma.utils.getCenter(e).y,
            true
          );

          animation = {
            duration: _settings('doubleClickZoomDuration')
          };

          sigma.utils.zoomTo(_camera, pos.x, pos.y, ratio, animation);
        }

        if (e.preventDefault)
          e.preventDefault();
        else
          e.returnValue = false;

        e.stopPropagation();
        return false;
      }
    }
1303824
def _on_move(self, event):
        """"""
        w = self.winfo_width()
        x = min(max(event.x, 0), w)
        self.coords('cursor', x, 0, x, self.winfo_height())
        self._variable.set(round2((360. * x) / w))
164683
function(e) {
        e.preventDefault();
        var group = e.group;
        var toZoom;
        if (group) {
          toZoom = e.secondary ? group.parent : group;
        } else {
          toZoom = this.get('dataObject');
        }
        this.zoom(toZoom);
      }
1235334
def zoom_in(self):
        
        viewer = self.getfocus_viewer()
        if hasattr(viewer, 'zoom_in'):
            viewer.zoom_in()
        return True
768305
def zoom_out(self):
        """"""
        index = self._zoom_factors.index(self._zoom_factor)
        if index == 0:
            # Already zoomed out all the way
            return
        self._zoom_factor = self._zoom_factors[index - 1]
        if self._zoom_factors.index(self._zoom_factor) == 0:
            self._button_zoom_out.config(state=tk.DISABLED)
        self._button_zoom_in.config(state=tk.NORMAL)
        self.draw_timeline()
939879
def on_mouse_event(self, event):
        ''''''
        pos = event.GetPosition()
        if event.RightDown() and self.popup_menu is not None:
            self.show_popup_menu(pos)
            return
        if event.Leaving():
            self.mouse_pos = None
        else:
            self.mouse_pos = pos

        if event.LeftDown():
            self.mouse_down = self.image_coordinates(pos)
        if event.Dragging() and event.ButtonIsDown(wx.MOUSE_BTN_LEFT):
            self.on_drag_event(event)
639738
function clickRegion( e ) {
	
	let pos 	= {
		x : e.clientX,
		y : e.clientY
	},
	region 		= '',
	dividant 	= 4,
	right  		= window.innerWidth - (window.innerWidth / dividant),
	left   		= (window.innerWidth / dividant),
	top    		= (window.innerHeight / dividant),
	bottom 		= window.innerHeight - (window.innerHeight / dividant);

	if( pos.y <= top ) { region = 'top'; }
	else if(  pos.y >= bottom ) { region = 'bottom'; }

	if( pos.x <= left ) { region = 'left'; }
	else if(  pos.x >= right ) { region = 'right'; }

	return region;
}