{"action":"opened","issue":{"url":"https://api.github.com/repos/almende/vis/issues/2977","repository_url":"https://api.github.com/repos/almende/vis","labels_url":"https://api.github.com/repos/almende/vis/issues/2977/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/2977/comments","events_url":"https://api.github.com/repos/almende/vis/issues/2977/events","html_url":"https://github.com/almende/vis/issues/2977","id":221310129,"number":2977,"title":"Vis.js Timeline: Configuration Options -> Snap","user":{"login":"sabotrev","id":8333646,"avatar_url":"https://avatars0.githubusercontent.com/u/8333646?v=3","gravatar_id":"","url":"https://api.github.com/users/sabotrev","html_url":"https://github.com/sabotrev","followers_url":"https://api.github.com/users/sabotrev/followers","following_url":"https://api.github.com/users/sabotrev/following{/other_user}","gists_url":"https://api.github.com/users/sabotrev/gists{/gist_id}","starred_url":"https://api.github.com/users/sabotrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabotrev/subscriptions","organizations_url":"https://api.github.com/users/sabotrev/orgs","repos_url":"https://api.github.com/users/sabotrev/repos","events_url":"https://api.github.com/users/sabotrev/events{/privacy}","received_events_url":"https://api.github.com/users/sabotrev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-12T15:57:12Z","updated_at":"2017-04-12T15:57:12Z","closed_at":null,"body":"I have already looked through previous issues, but I was no able to find any clarification on this issue. I am currently running macOS Sierra in Safari on the latest version of vis.js timeline (https://cdnjs.cloudflare.com/ajax/libs/vis/4.19.1/vis.js).\r\n\r\nI am using the snap configuration option to place each item to the minute:\r\n\r\n```\r\nsnap: function (date, scale, step) {\r\n    var minutes = 60 * 1000;\r\n    return Math.round(date / minutes) * minutes;\r\n  }\r\n```\r\nWhen the page is initially loaded all items in the DataSet are not correctly snapped to their corresponding minute. This also holds true when new items are added. Unfortunately, items are only snapped to the minute when clicked and dragged. All items in my DataSet are restricted to integer number minutes; therefore, they should sit flush within the grid. Again, I looked carefully through the documentation so I apologize if I missed something simple that could fix this.\r\n\r\nJS Bin: https://output.jsbin.com/xuqozanayo\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"sabotrev"}}