Closed Iorda closed 2 years ago
@lilfolr @marklawlor I would also like to have this feature, as we have events tracked at "seconds" granularity too. Can we look at merging the PR sent by @Iorda for adding support for it? Thanks in advace.
Added comments to the PR. Just need to update the unit tests & some variable names and I think its good to go
I think we discovered a bug introduced by this feature. The pixelsPerSecond()
doesn't exist any more. Hence now drag & resize don't work any more!
We'll take a look at this and provide a fix.
The PR that we've just mentioned fixes the above issue.
Thanks Leighton for the merge. Can you also close this issue?
I'm a collaborator with @cristian-spiescu. The gantt doesn't go beyond minutes and you cannot zoom out after going past this point.
This issue has been fixed in my branch. I also added a new snap variable called "snap"(see problems below)
Problems
Since the snap was titled "snapMinutes" , I added a new var called "snap". "snapMinutes" still exist to not damage current projects, but the new variable takes seconds. The problem I had is, that I could not get it to below seconds, because of rounded pixel calculations. Meaning, even if i gave it 500 ms to snap, it would go to 0,7s, because it was rounded.