File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -560,12 +560,12 @@ end
560560
561561function Scroll ._set_scroll_position (self , position )
562562 local available_extra = self .available_pos_extra
563- local position_x = helper .clamp (position .x , available_extra .x , available_extra .z )
564- local position_y = helper .clamp (position .y , available_extra .w , available_extra .y )
563+ position . x = helper .clamp (position .x , available_extra .x , available_extra .z )
564+ position . y = helper .clamp (position .y , available_extra .w , available_extra .y )
565565
566- if self .position .x ~= position_x or self .position .y ~= position_y then
567- self .position .x = position_x
568- self .position .y = position_y
566+ if self .position .x ~= position . x or self .position .y ~= position . y then
567+ self .position .x = position . x
568+ self .position .y = position . y
569569 gui .set_position (self .content_node , self .position )
570570
571571 self .on_scroll :trigger (self :get_context (), self .position )
You can’t perform that action at this time.
0 commit comments