arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.41k stars 266 forks source link

Bug: Weird selection behavior for text above mathtip #2442

Open andrew-murdza opened 1 week ago

andrew-murdza commented 1 week ago

Description

You cannot select just a part of the top of a math tip you can only select the whole thing. You can move into the tip using the arrow keys but you cannot go inside using the cursor.

Steps to Reproduce

(Required) Provide steps that are specific and repeatable

Run the HTML code

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Change FontShape of MathField</title>
  <script defer src="https://unpkg.com/mathlive"></script>
</head>
<body>
<math-field>\mathtip{111}{1}</math-field>
</body>
</html>
  1. Try to move inside of 111 with the cursor
  2. Try to select only one of the 1's

Actual Behavior

(Required) What happens when you follow the steps above?

Expected Behavior

It is possible to move inside 111 with the cursor It is possible to select a subset of 111

Environment

0.100.0