Skip to content

Commit

Permalink
FranzCross,mixin: fix mix-context-event selection on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Oct 13, 2023
1 parent f11ccb1 commit 784f779
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion FranzCross/mixin.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@
(send receiver get-height)
(send receiver number-of-visible-items)))
(define item-index
(let ([index (quotient (send event get-y) item-height)])
(let* ([index (quotient (send event get-y) item-height)]
[index (case (system-type 'os)
[(macosx) index] ;; the first non-header row has y=0
[else (sub1 index)])])
(and (< index (send receiver get-number)) index)))
(begin0 item-index
(when item-index
Expand Down

0 comments on commit 784f779

Please sign in to comment.