hackmdio / hackmdio/hackmd-io-issues

Location of cursor is incorrect when editing in windowed mode

Open
#144 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

### Is this a hackmd.io issue?

- [x] Yes, the bug happens on https://hackmd.io
- [ ] No. If it's a self-hosted CodiMD instance, please fire up the issue in the repo of CodiMD: https://github.com/hackmdio/codimd

### What's the problem
When the window of hackmd in half the screen size, the location of the cursor is different from the line I really input.
In the screeshots below, the cursor is in line 185, but the line I really input is line 182.
**This error occurs at random.**
#### Current behaviour
![hack_bug1](https://user-images.githubusercontent.com/20777981/71977133-05405d00-3253-11ea-9b29-9597b0e3d7e9.JPG)
![hack_bug2](https://user-images.githubusercontent.com/20777981/71977137-070a2080-3253-11ea-825c-dc0378496b29.JPG)

Provide steps to reproduce:
1. Click on 'edit'
2. Click any line
3. Input any word

#### Environment
I use HackMD on:

**Desktop**
- OS: Windows 10
- Browser: Chrome
- Browser Version: 79.0.3945.88

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.