ObjectView.st
changeset 65 b33e4f3a264e
parent 63 f4eaf04d1eaf
child 66 5897887602ee
--- 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