Fixes TextInput cursor issues when resizing/scrolling (#7622)

* Fixes text input cursor issues when resizing/scrolling

* refactoring
This commit is contained in:
Dexer 2021-09-19 06:21:25 -03:00 committed by GitHub
parent b1b3492d4e
commit 1e518357cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@
rgba:
(self.cursor_color
if self.focus and not self._cursor_blink
and int(self.x + self.padding[0]) <= self._cursor_visual_pos[0] <= int(self.x + self.width - self.padding[2])
else (0, 0, 0, 0))
Rectangle:
pos: self._cursor_visual_pos