search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

React Scheduler > Click and drag on blank space in the timeline to scroll

Asked by Andy
1 day ago.

Hello,

Does the scheduler currently support click & hold on the blank space of the timeline to scroll both vertically and horizontally?

Additional context in our code:

  • We currently have time range selection enabled (while in fact we want to disable this feature), but hide the time range selection shadow with `onTimeRangeSelecting > cssClass` because we want to simulate empty cell click using `onTimeRangeSelected`.

const onTimeRangeSelecting = (
  args
) => {
  args.cssClass = TIME_RANGE_SELECTION_HIDDEN_CLASS; // -> display: none;
};

  const onTimeRangeSelected = useCallback(
    (args) => {
      switch (args.origin) {
        // Simulating a grid cell click
        case 'click': {
          onGridCellClick();
          break;
        }
      }
    },
    [onGridCellClick]
  );
Answer posted by Dan Letecky [DayPilot]
1 day ago.

This works on touch devices because it’s supported natively there.

On other devices, you can use a touchpad or a mouse wheel to scroll in both directions.

Emulating this with mouse down + drag is not an option. It’s extremely difficult to implement smooth behavior (including inertia etc.) this way.

Comment posted by Andy
1 day ago.

Thank you, Dan. I will follow up with my team.

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):