Skip to content

More granular smoothTime controls #619

@codedpalette

Description

@codedpalette

Is your feature request related to a problem? Please describe.

Hello, would it be possible to add option to configure separate smoothTime values for different animation types? For backward compatibility we could still allow for setting smoothTime as one number, but also add the possibility of passing objects with fields

controller.smoothTime = {
  dolly: 1,
  rotate: 0.5
}

Also the same could be applied for draggingSmoothTime and setting separate values for mouse drag/touch drag/ wheel.

Describe the solution you'd like

No response

Describe alternatives you've considered

I've thought about maintaining the object with different time values and just setting the necessary one before calling corresponding function, but that approach breaks if there are multiple animations running simultaneously.

Additional context

I'd be happy to create a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions