void _handleLongPressStart(LongPressStartDetails details) { if (!_isDoubleTap && widget.onSingleLongTapStart != null) { widget.onSingleLongTapStart(details); } }
void _handleSingleLongTapStart(LongPressStartDetails details) { this._renderEditable.selectPositionAt( from: details.globalPosition, cause: SelectionChangedCause.longPress ); }
protected override void onSingleLongTapStart(LongPressStartDetails details) { if (_delegate.selectionEnabled) { //use android by default renderEditable.selectWord(cause: SelectionChangedCause.longPress); Feedback.forLongPress(_state.context); } }
void _handleLongPressStart(LongPressStartDetails details) { _currentController = _controller; if (!_checkVertical()) { return; } _pressStartY = details.localPosition.dy; _fadeoutTimer?.cancel(); _fadeoutAnimationController.forward(); _dragScrollbar(details.localPosition.dy); _dragScrollbarPositionY = details.localPosition.dy; }
void _handleSingleLongTapStart(LongPressStartDetails details) { if (this.widget.selectionEnabled) { switch (Theme.of(this.context).platform) { case RuntimePlatform.IPhonePlayer: this._renderEditable.selectPositionAt( from: details.globalPosition, cause: SelectionChangedCause.longPress ); break; case RuntimePlatform.Android: this._renderEditable.selectWord(cause: SelectionChangedCause.longPress); Feedback.forLongPress(this.context); break; } } this._confirmCurrentSplash(); }
protected override void onSingleLongTapStart(LongPressStartDetails details) { if (_delegate.selectionEnabled) { switch (Theme.of(_state.context).platform) { case RuntimePlatform.IPhonePlayer: case RuntimePlatform.OSXEditor: case RuntimePlatform.OSXPlayer: renderEditable.selectPositionAt( from: details.globalPosition, cause: SelectionChangedCause.longPress ); break; default: renderEditable.selectWord(cause: SelectionChangedCause.longPress); Feedback.forLongPress(_state.context); break; } } }