France-ioi / AlgoreaFrontend

Front-end for the new Algorea platform
MIT License
4 stars 1 forks source link

Forum: try to fix a scroll behavior #1546

Open smadbe opened 8 months ago

smadbe commented 8 months ago

Overview

Try to avoid this behavior: https://github.com/France-ioi/AlgoreaFrontend/assets/1053150/bc299708-f250-45f9-afec-463350263d81

No scroll should happen when the cursor is already visible and stays visible after the change.

Fix that only if that does not require a lot of work.

Iloveall commented 8 months ago

Only I found solution is to turn textarea into https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable

But it requires to create control component, implement disabled state, so a lot of work