SpyrexDE / SmoothScroll

Addon for the Godot Game Engine that adds a SmoothScrollContainer.
https://spyrexde.github.io/SmoothScroll/
MIT License
132 stars 10 forks source link

Minor bug fixes #53

Closed HaroldLever closed 2 months ago

HaroldLever commented 2 months ago

Fix minor mistakes.

func is_outside_right_boundary(x_pos: float = pos.x) -> bool:
    var size_x_diff = get_child_size_x_diff(content_node,true)
    var right_dist = get_child_right_dist(x_pos, size_x_diff)
    # return right_dist > 0.0
    return right_dist < 0.0
MOUSE_BUTTON_WHEEL_UP:
if event.pressed:
    last_scroll_type = SCROLL_TYPE.WHEEL
    # if event.shift_pressed:
    if event.shift_pressed or not should_scroll_vertical():
        if should_scroll_horizontal():
            velocity.x += speed