mirror of
https://github.com/ankitects/anki.git
synced 2025-12-09 04:46:57 -05:00
add the timeout back in for older qt versions
This commit is contained in:
parent
8f9a20c5a5
commit
3828c43cd8
1 changed files with 2 additions and 2 deletions
|
|
@ -97,8 +97,8 @@ function onFocus(elem) {
|
||||||
py.run("focus:" + currentField.id.substring(1));
|
py.run("focus:" + currentField.id.substring(1));
|
||||||
// don't adjust cursor on mouse clicks
|
// don't adjust cursor on mouse clicks
|
||||||
if (mouseDown) { return; }
|
if (mouseDown) { return; }
|
||||||
// move cursor
|
// need to do this in a timeout for older qt versions
|
||||||
caretToEnd();
|
setTimeout(function () { caretToEnd() }, 1);
|
||||||
// scroll if bottom of element off the screen
|
// scroll if bottom of element off the screen
|
||||||
function pos(obj) {
|
function pos(obj) {
|
||||||
var cur = 0;
|
var cur = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue