fixes the mouse over problem mentioned in PR 11147.

not really sure the best way to fix the getting-smaller problem.
This commit is contained in:
Robby Findler 2010-08-30 20:16:14 -05:00
parent 2e29c09f96
commit 7e1a6ec908

View File

@ -304,15 +304,14 @@
(cond
[(and mouse-x mouse-y)
(let-values ([(i j) (mouse-xy->ij mouse-x mouse-y)])
(if (and i j)
(let ([index (+ (* j (vector-length column-widths)) i)])
(update-arrows (find-connections index))
(update-highlighted-cells
(cond
[(< index (vector-length heap-vec))
(cons index (index->nexts index))]
[else '()])))
(update-highlighted-cells '())))]
(let ([index (and i j (+ (* j (vector-length column-widths)) i))])
(cond
[(and index (< index (vector-length heap-vec)))
(update-arrows (find-connections index))
(update-highlighted-cells (cons index (index->nexts index)))]
[else
(update-highlighted-cells '())
(update-arrows '())])))]
[else
(update-highlighted-cells '())
(update-arrows '())]))