Crutch
Well-known member
Not sure if anyone else is addicted to running Mini vMac for iPad and carrying it around with you everywhere you go, but … I am.
And it’s bugged me that when running it, the obvious thing to do - scrolling documents open in Mini vMac by swiping on the iPad - doesn’t work. (I mainly use it for hacking up THINK C code on the go.)
Now it does! Here’s a preview of “TouchScroll,” an INIT (soon to be cdev) I built to implement swipe-scrolling and inertial scrolling directly inside System 7 (and probably later flavors of System 6 also, as well as MacOS 8 and 9 - though none of those are tested yet). It was fairly tricky to build in part because it’s surprisingly difficult to get the correct local coordinates of scrolls bars at random times. I had to patch SystemEvent, FindControl, TrackControl and (to trick apps to let me scroll less than 1 line at a time for a smoother effect) ScrollRect, among other things.
Nothing here actually assumes you’re using an iPad. You can get inertial scrolling on a desktop install of Mini vMac (or in fact, any other emulator) just buy dragging (quite) fast vertically in any window with a scroll bar, even the Finder. (Of course I had to co-opt the classic Susan Kare “grabber” cursor for the drag action.)
If there’s interest I will polish this up and release it here sometime soon. For now here’s a quick screencap video. Either way I find it personally very useful!
And it’s bugged me that when running it, the obvious thing to do - scrolling documents open in Mini vMac by swiping on the iPad - doesn’t work. (I mainly use it for hacking up THINK C code on the go.)
Now it does! Here’s a preview of “TouchScroll,” an INIT (soon to be cdev) I built to implement swipe-scrolling and inertial scrolling directly inside System 7 (and probably later flavors of System 6 also, as well as MacOS 8 and 9 - though none of those are tested yet). It was fairly tricky to build in part because it’s surprisingly difficult to get the correct local coordinates of scrolls bars at random times. I had to patch SystemEvent, FindControl, TrackControl and (to trick apps to let me scroll less than 1 line at a time for a smoother effect) ScrollRect, among other things.
Nothing here actually assumes you’re using an iPad. You can get inertial scrolling on a desktop install of Mini vMac (or in fact, any other emulator) just buy dragging (quite) fast vertically in any window with a scroll bar, even the Finder. (Of course I had to co-opt the classic Susan Kare “grabber” cursor for the drag action.)
If there’s interest I will polish this up and release it here sometime soon. For now here’s a quick screencap video. Either way I find it personally very useful!