private void OnSingleTap(int touchId, Direction side, Vector2 point) { if (null != SingleTap) { SingleTap.Invoke(touchId, side, point); } }
/// <summary> /// Called, when mouse/finger/pen tapped on map one time /// </summary> /// <param name="screenPosition">Clicked/touched position on screen</param> private bool OnSingleTapped(Geometries.Point screenPosition) { var args = new TappedEventArgs(screenPosition, 1); SingleTap?.Invoke(this, args); if (args.Handled) { return(true); } return(Map.InvokeInfo(screenPosition, screenPosition, _scale, _renderer.SymbolCache, WidgetTouched, 1)); }
/// <summary> /// Called, when mouse/finger/pen tapped on map one time /// </summary> /// <param name="screenPosition">Clicked/touched position on screen</param> /// <returns>True, if the event is handled</returns> private bool OnSingleTapped(Geometries.Point screenPosition) { var args = new TappedEventArgs(screenPosition, 1); SingleTap?.Invoke(this, args); if (args.Handled) { return(true); } var infoToInvoke = InvokeInfo(screenPosition, screenPosition, 1); OnInfo(infoToInvoke); return(infoToInvoke?.Handled ?? false); }
/// <summary> /// Called, when mouse/finger/pen tapped on map one time /// </summary> /// <param name="screenPosition">Clicked/touched position on screen</param> /// <returns>True, if the event is handled</returns> private bool OnSingleTapped(Geometries.Point screenPosition) { var args = new TappedEventArgs(screenPosition, 1); SingleTap?.Invoke(this, args); if (args.Handled) { return(true); } var eventReturn = InvokeInfo(screenPosition, screenPosition, 1); if (eventReturn != null) { return(eventReturn.Handled); } return(false); }
/// <summary> /// Called, when mouse/finger/pen tapped on map one time /// </summary> /// <param name="screenPosition">Clicked/touched position on screen</param> /// <returns>True, if the event is handled</returns> private bool OnSingleTapped(Geometries.Point screenPosition) { var args = new TappedEventArgs(screenPosition, 1); SingleTap?.Invoke(this, args); if (args.Handled) { return(true); } var eventReturn = InvokeInfo(Map.Layers, Map.GetWidgetsOfMapAndLayers(), Viewport, screenPosition, screenPosition, _renderer.SymbolCache, WidgetTouched, 1); if (eventReturn != null) { return(eventReturn.Handled); } return(false); }
public override bool OnSingleTapUp(MotionEvent e) { SingleTap?.Invoke(this, e); return(base.OnSingleTapUp(e)); }