feat: scroll schedule cursor into view

This commit is contained in:
Thea Schöbl
2022-10-24 17:21:12 +00:00
committed by Rainer Killinger
parent 42e2f3a0cb
commit bc4c3d78db
9 changed files with 140 additions and 65 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 StApps
* Copyright (C) 2022 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -15,6 +15,7 @@
import {Component, Input, OnInit} from '@angular/core';
import {HoursRange} from '../schema/schema';
import moment from 'moment';
import {getScheduleCursorOffset} from './schedule-cursor-offset';
/**
* Component that displays the schedule
@@ -47,6 +48,8 @@ export class ScheduleCursorComponent implements OnInit {
*/
@Input() readonly scale: number;
getScheduleCursorOffset = getScheduleCursorOffset;
/**
* Get a floating point time 0..24
*/