On Apr 7, 11:15 pm, Klaas Pieter Annema <
klaaspie...@annema.me> wrote:
> 1. It depends. In a tableview for example, the inset bounds is equal to the height of the row.
I'll have to go have another look, but I don't think this is true (or
at least not entirely true). At the very least making the inset
bigger in CPDragServer makes autoscrolling in CPTableView
significantly faster.
> I've tested the behavior in a Mac application and to be honest it doesn't work very well either. It's way faster than ours, which makes it really hard to control.
>
> We should probably play around with this behavior a lot more to see what works. I've created an issue for this.
I'd agree completely with you that we should just sort this out. My
experiments with CPTableViews, dragging and autoscrolling with the
inset bounds set to 30 pixels seems to fix all of my issues. It's not
to sensitive, not too fast, just about right. I went ahead and made a
pull request for it:
https://github.com/280north/cappuccino/pull/1216
I've tested the change with tables of differing row heights on Linux
(FFox, Chrome) and Windows (FFox, Chrome, IE, Safari). They all
worked well with the setting that I propose in the pull request. But
you've made me doubt myself a bit so I'll have another look and rerun
my tests.
By the way, regarding your note in the issue, based on my inspection
of the code and my tests it _does_ speed up and slow down based on
where in the inset the cursor is. I'm guessing that with an inset of
10 there isn't enough play to notice it as much. With 30 you
certainly see it. I'd encourage you to test out my pull request to
see the results.
Thanks for the reply,
Mike