We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897fbaa commit 7ff41bfCopy full SHA for 7ff41bf
src/Components/ScrollView/ScrollViewNativeComponent.luau
@@ -44,7 +44,7 @@ function ScrollViewNativeComponent:init(props)
44
y = 0,
45
})
46
47
- self.motorStepDisconnect = self.motor:onStep(function(canvasPosition)
+ self.motorStepConnection = self.motor:onStep(function(canvasPosition)
48
self._nativeRef.current.CanvasPosition = Vector2.new(canvasPosition.x, canvasPosition.y)
49
end)
50
@@ -182,8 +182,8 @@ function ScrollViewNativeComponent:willUnmount()
182
self.motor:destroy()
183
end
184
185
- if self.motorStepDisconnect ~= nil then
186
- self.motorStepDisconnect()
+ if self.motorStepConnection ~= nil then
+ self.motorStepConnection:disconnect()
187
188
189
0 commit comments