--- a/ObjectView.st Thu Nov 17 15:40:37 1994 +0100
+++ b/ObjectView.st Mon Nov 21 17:46:30 1994 +0100
@@ -48,7 +48,7 @@
version
"
-$Header: /cvs/stx/stx/libwidg/ObjectView.st,v 1.11 1994-11-17 14:38:16 claus Exp $
+$Header: /cvs/stx/stx/libwidg/ObjectView.st,v 1.12 1994-11-21 16:45:37 claus Exp $
"
!
@@ -195,6 +195,26 @@
]
! !
+!ObjectView methodsFor:'scrolling'!
+
+horizontalScrollStep
+ "return the amount to scroll when stepping left/right."
+
+ scaleMetric == #inch ifTrue:[
+ ^ (device horizontalPixelPerInch * (1/2)) asInteger
+ ].
+ ^ (device horizontalPixelPerMillimeter * 20) asInteger
+!
+
+verticalScrollStep
+ "return the amount to scroll when stepping left/right."
+
+ scaleMetric == #inch ifTrue:[
+ ^ (device verticalPixelPerInch * (1/2)) asInteger
+ ].
+ ^ (device verticalPixelPerMillimeter * 20) asInteger
+! !
+
!ObjectView methodsFor:'queries'!
heightOfContents