mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
1.1 KiB
1.1 KiB
Touch Event Handler for Monaco Editor
This script enhances the Monaco Editor by adding touch support, enabling seamless touch-based text selection. It is one of the first touch handlers designed specifically for Monaco, making it more versatile and user-friendly on mobile devices.
Features
- Touch-Based Selection: Enables text selection using touch gestures.
- Dynamic Positioning: Custom selectors (right-selector and left-selector) are dynamically positioned based on the selection range within the editor.
- Enhanced Mobile Experience: Provides a more intuitive and efficient editing experience on touch-enabled devices.
Installation
To integrate the touch event handler into your Monaco Editor setup, follow these steps:
- Include the Script: Add the touch event handler script to your project.
- Initialize the Handler: Initialize the touch event handler after setting up the Monaco Editor.
License
This project is licensed under the Apache-2.0 license. See the LICENSE file for details.
This feature is developed by axios-code.