@@ -53,11 +53,11 @@ class WheelEventTests : OnCanvasTests {
5353 assertEquals(0 , verticalScrollState.value)
5454
5555 // do horizontal scroll, and check that scroll state didn't change
56- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaX = 10 .0 )))
56+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaX = 5 .0 )))
5757 assertEquals(0 , verticalScrollState.value, " vertical scroll was not expected to change" )
5858
5959 // vertical scroll
60- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 10 .0 )))
60+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 5 .0 )))
6161 assertEquals(10 , verticalScrollState.value, " vertical scroll was expected to change" )
6262 }
6363
@@ -78,11 +78,11 @@ class WheelEventTests : OnCanvasTests {
7878 assertEquals(0 , horizontalScrollState.value)
7979
8080 // do vertical scroll, and check that scroll state didn't change
81- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 10 .0 )))
81+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 5 .0 )))
8282 assertEquals(0 , horizontalScrollState.value, " horizontal scroll was not expected to change" )
8383
8484 // horizontal scroll
85- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaX = 10 .0 )))
85+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaX = 5 .0 )))
8686 assertEquals(10 , horizontalScrollState.value, " horizontal scroll was expected to change" )
8787 }
8888
@@ -104,11 +104,11 @@ class WheelEventTests : OnCanvasTests {
104104 assertEquals(0 , horizontalScrollState.value)
105105
106106 // do vertical scroll w/o Shift, and check that scroll state didn't change
107- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 10 .0 )))
107+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 5 .0 )))
108108 assertEquals(0 , horizontalScrollState.value, " horizontal scroll was not expected to change" )
109109
110110 // do vertical scroll with Shift
111- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 10 .0 , shiftKey = true )))
111+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 5 .0 , shiftKey = true )))
112112 assertEquals(10 , horizontalScrollState.value, " horizontal scroll was expected to change" )
113113 }
114114
@@ -129,15 +129,15 @@ class WheelEventTests : OnCanvasTests {
129129 assertEquals(0 , verticalScrollState.value)
130130
131131 // press shift and do horizontal scroll (X-axis)
132- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaX = 10 .0 , shiftKey = true )))
132+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaX = 5 .0 , shiftKey = true )))
133133 assertEquals(0 , verticalScrollState.value, " horizontal scroll was not expected to change" )
134134
135135 // press shift and do vertical scroll (Y-axis) - verticalScrollState won't change because Shift is pressed
136- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 10 .0 , shiftKey = true )))
136+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 5 .0 , shiftKey = true )))
137137 assertEquals(0 , verticalScrollState.value, " horizontal scroll was not expected to change" )
138138
139139 // no Shift, do vertical scroll (Y-axis)
140- getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 10 .0 , shiftKey = false )))
140+ getCanvas().dispatchEvent(WheelEvent (" wheel" , WheelEventInit (deltaY = 5 .0 , shiftKey = false )))
141141 assertEquals(10 , verticalScrollState.value, " horizontal scroll expected to change" )
142142 }
143143}
0 commit comments