xpyjs / gantt

An easy-to-use Gantt component. 持续更新,中文文档
https://docs.xiaopangying.com/gantt/
MIT License
243 stars 41 forks source link

[BUG]设置move-by-unit后滑块拖动会存在偏离 #104

Closed RicardoWL closed 2 months ago

RicardoWL commented 2 months ago

设置move-by-unit后,根组件unit使用默认的day,进行滑块拖动时,会出现偏离 bug

RicardoWL commented 2 months ago

增加了1天是因为我在滑动结束后将开始日期和结束日期分别设置为0点和23点59分59秒,来覆盖准确的日周期范围

jeremyjone commented 2 months ago

101 是不是这个问题?

RicardoWL commented 2 months ago

应该不一样吧,那个是点击时候就增加了,这个是拖动过程偶尔出现,而且我已经更新到最新的2.1.10版本了 另外,那边看起来并没有拖动偏移的现象

jeremyjone commented 2 months ago

了然。有时间我看一下