~musikernel/musikernel/master

« back to all changes in this revision

Viewing changes to src/pydaw/python/dawnext.py

  • Committer: MusiKernel Team
  • Date: 2016-08-07 21:38:22 UTC
  • Revision ID: git-v1:4f22b11951e6fa20847eaefc151c40ee6d72afb5
Prevent playback positions less than zero from clicking on the headers

Show diffs side-by-side

added added

removed removed

Lines of Context:
701
701
            f_beat = int((a_event.scenePos().x() - self.cursor_offset)
702
702
                / self.px_per_beat) + CURRENT_ITEM_REF.start_beat - \
703
703
                CURRENT_ITEM_REF.start_offset
704
 
            global_set_playback_pos(f_beat)
 
704
            global_set_playback_pos(f_beat if f_beat >= 0 else 0)
705
705
 
706
706
 
707
707
class SequencerItem(pydaw_widgets.QGraphicsRectItemNDL):