mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-09 04:10:26 -08:00
fix drag start point
This commit is contained in:
parent
8d92d22f07
commit
6e5d273595
1 changed files with 4 additions and 3 deletions
|
|
@ -1108,6 +1108,8 @@ of controls and double click to select control."
|
|||
(set-on-full-screen-change (html-document (connection-body obj)) #'on-size)
|
||||
(set-on-orientation-change (window (connection-body obj)) #'on-size)
|
||||
(set-on-pointer-down divider (lambda (obj data)
|
||||
(setf (getf data :client-y) (+ adj-size
|
||||
(getf data :client-y)))
|
||||
(set-on-pointer-up (connection-body obj)
|
||||
(lambda (obj data)
|
||||
(declare (ignore data))
|
||||
|
|
@ -1115,9 +1117,8 @@ of controls and double click to select control."
|
|||
(set-on-pointer-move (connection-body obj) nil)))
|
||||
(set-on-pointer-move (connection-body obj)
|
||||
(lambda (obj new-data)
|
||||
(setf adj-size (- (getf data :screen-y)
|
||||
(getf new-data :screen-y)))
|
||||
(print adj-size)
|
||||
(setf adj-size (- (getf data :client-y)
|
||||
(getf new-data :client-y)))
|
||||
(on-size obj))))
|
||||
:capture-pointer t))
|
||||
(set-on-click side-panel (lambda (obj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue