mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
corrects typos in comments on-mouse-down in tutorial 08
various little corrections
This commit is contained in:
parent
f2e87287c7
commit
9e327bbb6a
1 changed files with 3 additions and 3 deletions
|
|
@ -23,11 +23,11 @@
|
||||||
|
|
||||||
(defun on-mouse-down (obj data)
|
(defun on-mouse-down (obj data)
|
||||||
(let ((app (connection-data-item obj "app-data"))) ; Access our instance of App-Data
|
(let ((app (connection-data-item obj "app-data"))) ; Access our instance of App-Data
|
||||||
(bordeaux-threads:with-lock-held ((drag-mutex app)) ; Insurce the first event received
|
(bordeaux-threads:with-lock-held ((drag-mutex app)) ; Ensure the first event received
|
||||||
(unless (in-drag-p app) ; to drag is the only one, ie only
|
(unless (in-drag-p app) ; to drag is the only one, ie only
|
||||||
(setf (in-drag-p app) t) ; the innermost box is dragged.
|
(setf (in-drag-p app) t) ; the innermost box is dragged.
|
||||||
(let* ((mouse-x (getf data ':screen-x)) ; Use the screen coordinents not
|
(let* ((mouse-x (getf data ':screen-x)) ; Use the screen coordinates not
|
||||||
(mouse-y (getf data ':screen-y)) ; the coordents relative to the obj
|
(mouse-y (getf data ':screen-y)) ; the coordinates relative to the obj
|
||||||
(obj-top (parse-integer (top obj) :junk-allowed t))
|
(obj-top (parse-integer (top obj) :junk-allowed t))
|
||||||
(obj-left (parse-integer (left obj) :junk-allowed t)))
|
(obj-left (parse-integer (left obj) :junk-allowed t)))
|
||||||
(setf (drag-x app) (- mouse-x obj-left))
|
(setf (drag-x app) (- mouse-x obj-left))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue