You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we use VisJS in our project to display a timeline representation on a data.
recently we update to the last version (6.2.3) and we face with "view jumping" problem
when the user is scrolling horizontally.
I try to find any information or something that can help on the web but without luck.
what I do find is that when I remove the timezone settings (we need to use UTC) var options = { moment: function(date) { return vis.moment(date).utc(); } };
the problem is gone.
we found that this related to the moment option by eliminating feathers from this component.
and don't have more clue about how to fix it.
any help will be welcome
thanks!
The text was updated successfully, but these errors were encountered:
UPDATE:
I don't 100% sure but, at TimeStep.js line 123 start function
after the roundToMinor sometimes the this.current changed to local time.
looks like reference problem or side-effect some were.
currently to fix it I FORCE set this.current to the correct settings by calling this.options.moment again.
change to start function
To: start() { this.current = this._start.clone(); this.roundToMinor(); // force to use user configuration(options object). this.current = this.options.moment(this.current.valueOf()); }
OS: windows 10
browser: firefox 70.0.1 / chrome 78.0.3904.97
version of vis.js :
Hi, all
we use VisJS in our project to display a timeline representation on a data.
recently we update to the last version (6.2.3) and we face with "view jumping" problem
when the user is scrolling horizontally.
I try to find any information or something that can help on the web but without luck.
what I do find is that when I remove the timezone settings (we need to use UTC)
var options = { moment: function(date) { return vis.moment(date).utc(); } };
the problem is gone.
we found that this related to the moment option by eliminating feathers from this component.
and don't have more clue about how to fix it.
any help will be welcome
thanks!
The text was updated successfully, but these errors were encountered: