-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Timeline: Chrome (Mac/Debian): Stuttering touch/drag of timeline produced by mousewheel usage in another viewsc #2023
Comments
my tests so far in vis.js: line 16847 Range.prototype._onDrag emits rangechange event: line 17819
line 18348
if I analyze the loop of redrawing all components in line 18495, i noticed that stuttering will be produced by repainting Labels when redrawing timeAxis. So If I left out line 23783:
stuttering is gone, but not timeaxis labels will be paint. Problem should be inside that function. |
I was exiting the function at several lines and I could noticed:
and
.... produced by moment obj in the while loop? |
Please, can anyone test/confirm that stutter problem? The timeline can hardly be operated by the stuttering... |
We're currently having the same issue on windows/mac/linux & chrome where when the user scrolls anywhere in the application the timeline starts to stutter. Opening a new tab/window seems to solve the issue until the user scrolls again. But a more permanent solution would be nice :) |
In my case...no problem with win7 chrome. It occurs only when using mousewheel before. Yes, opening a new tab will solve it. Maybe the memory that was used will be flushed for that case |
Yeah we're having exactly the same problem with the mousewheel and it's exactly as you described the problem in your first post. |
@JesperJohnsson Thanks for confirming this issue!! Is there a simple way to reproduce this? The (many) steps in the description are a little hard to follow. |
it will freeze the gui with or without redrawing new items. How i had said, dragging the timeline to left or right starts stuttering. The hammer events for touch and drag are proceeded well without any blocking, but the redrawing process stutters. But why will it be a result of scrolling any content by a mouse wheel (before, everything works fine) |
The issue doesn't seem to be happening on either safari or edge, it seems to be a problem with chrome. @mojoaxel the easiest way to reproduce the problem is to follow @kuehn-sba instructions :) |
What's the status of this issue, is it something you are trying to fix @mojoaxel, or is it further down on your priority list? :P |
@JesperJohnsson I'm not the lead-developer or something...I'm just a guy like you that is helping out, trying to keep this project from collapsing under a mountain of issues 😉 I'll be happy to review and merge a pull request but I don't think that I'll find the time to fix this issue myself in the near future.
To be honest: I still have problems reproducing this. I think we need a really simple example (max. steps) to reproduce this so that people can debug it. Maybe you also can try to reproduce it on other browsers/platforms. Could be a browser issue. |
The above example shows when and when not the issue will produced.
|
Ok, I created an example on jsbin with a lot of content to scroll. With this it should be easy to reproduce this issue without the window resizing:
I still don't see stutters after vertical scrolling 😣 What am I doing wrong? |
AHH! Now I see what you meen. I think I can reproduce it now:
Looks like an browser (Chrome) issue to me. This will be hard to figure out. |
Yeah I think it's a chrome specific issue, tried my application on safari, chrome, edge and it's only chrome that I get the problem. |
Ok. I think we can close it here. |
@kuehn-sba Feel free to reopen the issue if you still think this is a vis.js problem! Because the issue seems to only appear on Chrome I think we reasonably can assume that it is a browser issue. In any case, there are no commercial support for this project at the moment (see #1781), so there is almost no chance that somebody will take the time to debug this edge case in depth! |
I have report that bug to the chrome dev team: |
Chrome on Windows is where I get the problem so, it doesn't work there as you stated @kuehn-sba |
I have to take an eye on this further, but it seems chrome version 54.0.2840.87 Final (for mac 02.11.2016) fixed that issue (no stuttering so far). |
When playing around in Chrome of my Mac with the embedded timeline within our web system, I've noticed that the timeline begins heavily to stutter when previously the mouse wheel was used in any scrollable content.
The problem remains even exist when the URL is reloaded again. The only way to get a "smooth scrolling" of timeline back, is to close Chrome browser or to open a new tab.
You can reproduce it, when:
The problem was found when using Chrome on Unix (as ubuntu) and Mac.
That problem has nothing to do with resizing browser view, because stuttering appears in general, when using a mouse wheel for scrolling a scrollable element (e.g. combobox...) before.
I hope you can reproduce and identify the problem.
Maybe it has something to do with Hammer.JS, what you use internal for touching.
I can see inside your source that you use Hammer.JS - v2.0.6 - 2015-12-23.
For testing purpose i had changed to hammer.js 2.0.8 code(replaced lines 11206-13776), but nothing helps (still stuttering).
The text was updated successfully, but these errors were encountered: