change the way scrolling works so that canvases that are 'primary-owner's are respected when calling scroll-to on an admin
This change may also affect other attempts to scroll, however, so watch for strange scrollings when multiple editor-canvaess are displaying the same text% object. closes PR 10853 original commit: 5eec85a5a259ce2c461f3fce2eed1f5a017cb8c5
This commit is contained in:
parent
243761a92e
commit
6d348a2114
|
@ -1131,17 +1131,17 @@
|
||||||
|
|
||||||
(define/public (do-scroll-to localx localy w h refresh? bias prev? next? only-focus?)
|
(define/public (do-scroll-to localx localy w h refresh? bias prev? next? only-focus?)
|
||||||
(and canvas
|
(and canvas
|
||||||
(or (and (not (send canvas is-focus-on?))
|
(or (and (or (send canvas is-focus-on?)
|
||||||
|
(not only-focus?))
|
||||||
|
(list (send canvas scroll-to localx localy w h refresh? bias)))
|
||||||
|
(and (not (send canvas is-focus-on?))
|
||||||
(or
|
(or
|
||||||
(and prev?
|
(and prev?
|
||||||
prevadmin
|
prevadmin
|
||||||
(send prevadmin do-scroll-to localx localy w h refresh? bias #t #f #t))
|
(send prevadmin do-scroll-to localx localy w h refresh? bias #t #f #t))
|
||||||
(and next?
|
(and next?
|
||||||
nextadmin
|
nextadmin
|
||||||
(send nextadmin do-scroll-to localx localy w h refresh? bias #f #t #t))))
|
(send nextadmin do-scroll-to localx localy w h refresh? bias #f #t #t)))))))
|
||||||
(and (or (not only-focus?)
|
|
||||||
(send canvas is-focus-on?))
|
|
||||||
(list (send canvas scroll-to localx localy w h refresh? bias))))))
|
|
||||||
|
|
||||||
(def/override (grab-caret [(symbol-in immediate display global) dist])
|
(def/override (grab-caret [(symbol-in immediate display global) dist])
|
||||||
(when canvas
|
(when canvas
|
||||||
|
|
Loading…
Reference in New Issue
Block a user