You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I'm not misunderstanding the purpose of this method, then I think it has a bug - it only works if both scrollbars are both currently at zero offset, and also only when called once (a second call with the same TPoint argument has strange behaviour).
The main problem is that the code doesn't take into account the current scrollbar offsets when applying the delta. Please see a suggested fix below which I tested with different scale factors (0.8, 1 and 2) and it works consistently. I hope this helps.
The text was updated successfully, but these errors were encountered:
Hi CrustyLoaf.
I've tried without success 😱 to make some sense of my own code, so it's almost by definition ugly.
However, while I've not spent enough time to make sense of your changes either, they make the code much simpler and it seems to work well too, so I'll happily include this in the next update. (And I can delete the pt1 variable and just use imagePt.)
Hi,
If I'm not misunderstanding the purpose of this method, then I think it has a bug - it only works if both scrollbars are both currently at zero offset, and also only when called once (a second call with the same TPoint argument has strange behaviour).
The main problem is that the code doesn't take into account the current scrollbar offsets when applying the delta. Please see a suggested fix below which I tested with different scale factors (0.8, 1 and 2) and it works consistently. I hope this helps.
The text was updated successfully, but these errors were encountered: