monaco-editor/touch/README.md
2024-07-30 02:03:15 +02:00

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:

  1. Include the Script: Add the touch event handler script to your project.
  2. 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.