@@ -470,15 +470,15 @@ private void CreateModuloExpression(ScrollViewer scrollViewer, double imageWidth
470
470
expressionX . SetReferenceParameter ( propSetParam , propertySetModulo ) ;
471
471
expressionY . SetReferenceParameter ( propSetParam , propertySetModulo ) ;
472
472
473
- string Thing ( string common , string diemtion )
473
+ string Thing ( string common , string dimension )
474
474
=> string . Format (
475
475
"{0} == 0 " +
476
476
"? 0 " +
477
477
": {0} < 0 " +
478
478
"? -(Abs({0} - (Ceil({0} / {1}) * {1})) % {1}) " +
479
479
": -({1} - ({0} % {1}))" ,
480
480
common ,
481
- diemtion ) ;
481
+ dimension ) ;
482
482
483
483
string expressionXVal ;
484
484
string expressionYVal ;
@@ -499,8 +499,8 @@ string Thing(string common, string diemtion)
499
499
expressionX . SetReferenceParameter ( scrollParam , scrollProperties ) ;
500
500
expressionY . SetReferenceParameter ( scrollParam , scrollProperties ) ;
501
501
502
- string LocalThing ( string scroll , string speed , string offset , string dimention )
503
- => Thing ( string . Format ( "Ceil(({0} * {1}) + {2})" , scroll , speed , offset ) , dimention ) ;
502
+ string LocalThing ( string scroll , string speed , string offset , string dimension )
503
+ => Thing ( string . Format ( "Ceil(({0} * {1}) + {2})" , scroll , speed , offset ) , dimension ) ;
504
504
505
505
expressionXVal = LocalThing ( scrollParam + ".Translation.X" , qualifiedSpeedParam , qualifiedOffsetXParam , qualifiedImageWidthParam ) ;
506
506
0 commit comments