public bool DoubleTapped() { return(Tapped() && (lastTap != null) && (previousTap != null) && SKPoint.Distance(lastTap.initialLocation, previousTap.initialLocation) < 50 * DeviceDisplay.MainDisplayInfo.Density && TimeLib.Precedes(lastTap.initialTime, previousTap.initialTime.AddSeconds(0.3))); }
public bool Tapped() { bool tapped = (Drag() < 10 * DeviceDisplay.MainDisplayInfo.Density) && TimeLib.Precedes(DateTime.Now, initialTime.AddSeconds(0.3)); if (tapped && lastTap != this) { previousTap = lastTap; lastTap = this; } return(tapped); }