{"action":"opened","number":83,"pull_request":{"url":"https://api.github.com/repos/DominikSerafin/vuebar/pulls/83","id":311173530,"node_id":"MDExOlB1bGxSZXF1ZXN0MzExMTczNTMw","html_url":"https://github.com/DominikSerafin/vuebar/pull/83","diff_url":"https://github.com/DominikSerafin/vuebar/pull/83.diff","patch_url":"https://github.com/DominikSerafin/vuebar/pull/83.patch","issue_url":"https://api.github.com/repos/DominikSerafin/vuebar/issues/83","number":83,"state":"open","locked":false,"title":"Update .vb-content width on window resize (also zoom)","user":{"login":"hyvyys","id":20814638,"node_id":"MDQ6VXNlcjIwODE0NjM4","avatar_url":"https://avatars3.githubusercontent.com/u/20814638?v=4","gravatar_id":"","url":"https://api.github.com/users/hyvyys","html_url":"https://github.com/hyvyys","followers_url":"https://api.github.com/users/hyvyys/followers","following_url":"https://api.github.com/users/hyvyys/following{/other_user}","gists_url":"https://api.github.com/users/hyvyys/gists{/gist_id}","starred_url":"https://api.github.com/users/hyvyys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyvyys/subscriptions","organizations_url":"https://api.github.com/users/hyvyys/orgs","repos_url":"https://api.github.com/users/hyvyys/repos","events_url":"https://api.github.com/users/hyvyys/events{/privacy}","received_events_url":"https://api.github.com/users/hyvyys/received_events","type":"User","site_admin":false},"body":"When page is zoomed out, the width set to `.vb-content` (typically `calc(100% + 17px)`) gets out of sync as the native scrollbar is still 17 (physical) pixels, but the CSS width is not. I copied bits and pieces from the `initScrollbar()` function (including those after `//do the magic` comment) into a separate function that is now called from `resize` event handler.\r\n\r\nOne problem still persists: When page is zoomed out, for a split second 1px of the native scrollbar shows through until the width is set and content repainted. I noticed this in Firefox, in Chrome it is all fluid.","created_at":"2019-08-27T02:38:25Z","updated_at":"2019-08-27T02:38:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DominikSerafin/vuebar/pulls/83/commits","review_comments_url":"https://api.github.com/repos/DominikSerafin/vuebar/pulls/83/comments","review_comment_url":"https://api.github.com/repos/DominikSerafin/vuebar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DominikSerafin/vuebar/issues/83/comments","statuses_url":"https://api.github.com/repos/DominikSerafin/vuebar/statuses/32c6975f4ddf813d88b1ede13774e9ce4bef34fd","head":{"label":"hyvyys:master","ref":"master","sha":"32c6975f4ddf813d88b1ede13774e9ce4bef34fd","user":{"login":"hyvyys","id":20814638,"node_id":"MDQ6VXNlcjIwODE0NjM4","avatar_url":"https://avatars3.githubusercontent.com/u/20814638?v=4","gravatar_id":"","url":"https://api.github.com/users/hyvyys","html_url":"https://github.com/hyvyys","followers_url":"https://api.github.com/users/hyvyys/followers","following_url":"https://api.github.com/users/hyvyys/following{/other_user}","gists_url":"https://api.github.com/users/hyvyys/gists{/gist_id}","starred_url":"https://api.github.com/users/hyvyys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyvyys/subscriptions","organizations_url":"https://api.github.com/users/hyvyys/orgs","repos_url":"https://api.github.com/users/hyvyys/repos","events_url":"https://api.github.com/users/hyvyys/events{/privacy}","received_events_url":"https://api.github.com/users/hyvyys/received_events","type":"User","site_admin":false},"repo":{"id":204594472,"node_id":"MDEwOlJlcG9zaXRvcnkyMDQ1OTQ0NzI=","name":"vuebar","full_name":"hyvyys/vuebar","private":false,"owner":{"login":"hyvyys","id":20814638,"node_id":"MDQ6VXNlcjIwODE0NjM4","avatar_url":"https://avatars3.githubusercontent.com/u/20814638?v=4","gravatar_id":"","url":"https://api.github.com/users/hyvyys","html_url":"https://github.com/hyvyys","followers_url":"https://api.github.com/users/hyvyys/followers","following_url":"https://api.github.com/users/hyvyys/following{/other_user}","gists_url":"https://api.github.com/users/hyvyys/gists{/gist_id}","starred_url":"https://api.github.com/users/hyvyys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyvyys/subscriptions","organizations_url":"https://api.github.com/users/hyvyys/orgs","repos_url":"https://api.github.com/users/hyvyys/repos","events_url":"https://api.github.com/users/hyvyys/events{/privacy}","received_events_url":"https://api.github.com/users/hyvyys/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hyvyys/vuebar","description":" Vue 2 directive for custom scrollbar that uses native scroll behavior. Lightweight, performant, customizable and without dependencies. Used successfully in production on https://ggather.com","fork":true,"url":"https://api.github.com/repos/hyvyys/vuebar","forks_url":"https://api.github.com/repos/hyvyys/vuebar/forks","keys_url":"https://api.github.com/repos/hyvyys/vuebar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyvyys/vuebar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyvyys/vuebar/teams","hooks_url":"https://api.github.com/repos/hyvyys/vuebar/hooks","issue_events_url":"https://api.github.com/repos/hyvyys/vuebar/issues/events{/number}","events_url":"https://api.github.com/repos/hyvyys/vuebar/events","assignees_url":"https://api.github.com/repos/hyvyys/vuebar/assignees{/user}","branches_url":"https://api.github.com/repos/hyvyys/vuebar/branches{/branch}","tags_url":"https://api.github.com/repos/hyvyys/vuebar/tags","blobs_url":"https://api.github.com/repos/hyvyys/vuebar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyvyys/vuebar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyvyys/vuebar/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyvyys/vuebar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyvyys/vuebar/statuses/{sha}","languages_url":"https://api.github.com/repos/hyvyys/vuebar/languages","stargazers_url":"https://api.github.com/repos/hyvyys/vuebar/stargazers","contributors_url":"https://api.github.com/repos/hyvyys/vuebar/contributors","subscribers_url":"https://api.github.com/repos/hyvyys/vuebar/subscribers","subscription_url":"https://api.github.com/repos/hyvyys/vuebar/subscription","commits_url":"https://api.github.com/repos/hyvyys/vuebar/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyvyys/vuebar/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyvyys/vuebar/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyvyys/vuebar/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyvyys/vuebar/contents/{+path}","compare_url":"https://api.github.com/repos/hyvyys/vuebar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyvyys/vuebar/merges","archive_url":"https://api.github.com/repos/hyvyys/vuebar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyvyys/vuebar/downloads","issues_url":"https://api.github.com/repos/hyvyys/vuebar/issues{/number}","pulls_url":"https://api.github.com/repos/hyvyys/vuebar/pulls{/number}","milestones_url":"https://api.github.com/repos/hyvyys/vuebar/milestones{/number}","notifications_url":"https://api.github.com/repos/hyvyys/vuebar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyvyys/vuebar/labels{/name}","releases_url":"https://api.github.com/repos/hyvyys/vuebar/releases{/id}","deployments_url":"https://api.github.com/repos/hyvyys/vuebar/deployments","created_at":"2019-08-27T01:35:48Z","updated_at":"2019-08-27T02:31:37Z","pushed_at":"2019-08-27T02:31:36Z","git_url":"git://github.com/hyvyys/vuebar.git","ssh_url":"git@github.com:hyvyys/vuebar.git","clone_url":"https://github.com/hyvyys/vuebar.git","svn_url":"https://github.com/hyvyys/vuebar","homepage":"https://github.serafin.io/vuebar/","size":701,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DominikSerafin:master","ref":"master","sha":"005f9dc31d67c1518f7c46d9f87af9443cb1b12c","user":{"login":"DominikSerafin","id":7447244,"node_id":"MDQ6VXNlcjc0NDcyNDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7447244?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikSerafin","html_url":"https://github.com/DominikSerafin","followers_url":"https://api.github.com/users/DominikSerafin/followers","following_url":"https://api.github.com/users/DominikSerafin/following{/other_user}","gists_url":"https://api.github.com/users/DominikSerafin/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikSerafin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikSerafin/subscriptions","organizations_url":"https://api.github.com/users/DominikSerafin/orgs","repos_url":"https://api.github.com/users/DominikSerafin/repos","events_url":"https://api.github.com/users/DominikSerafin/events{/privacy}","received_events_url":"https://api.github.com/users/DominikSerafin/received_events","type":"User","site_admin":false},"repo":{"id":83795340,"node_id":"MDEwOlJlcG9zaXRvcnk4Mzc5NTM0MA==","name":"vuebar","full_name":"DominikSerafin/vuebar","private":false,"owner":{"login":"DominikSerafin","id":7447244,"node_id":"MDQ6VXNlcjc0NDcyNDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7447244?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikSerafin","html_url":"https://github.com/DominikSerafin","followers_url":"https://api.github.com/users/DominikSerafin/followers","following_url":"https://api.github.com/users/DominikSerafin/following{/other_user}","gists_url":"https://api.github.com/users/DominikSerafin/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikSerafin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikSerafin/subscriptions","organizations_url":"https://api.github.com/users/DominikSerafin/orgs","repos_url":"https://api.github.com/users/DominikSerafin/repos","events_url":"https://api.github.com/users/DominikSerafin/events{/privacy}","received_events_url":"https://api.github.com/users/DominikSerafin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/DominikSerafin/vuebar","description":" Vue 2 directive for custom scrollbar that uses native scroll behavior. Lightweight, performant, customizable and without dependencies. Used successfully in production on https://ggather.com","fork":false,"url":"https://api.github.com/repos/DominikSerafin/vuebar","forks_url":"https://api.github.com/repos/DominikSerafin/vuebar/forks","keys_url":"https://api.github.com/repos/DominikSerafin/vuebar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DominikSerafin/vuebar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DominikSerafin/vuebar/teams","hooks_url":"https://api.github.com/repos/DominikSerafin/vuebar/hooks","issue_events_url":"https://api.github.com/repos/DominikSerafin/vuebar/issues/events{/number}","events_url":"https://api.github.com/repos/DominikSerafin/vuebar/events","assignees_url":"https://api.github.com/repos/DominikSerafin/vuebar/assignees{/user}","branches_url":"https://api.github.com/repos/DominikSerafin/vuebar/branches{/branch}","tags_url":"https://api.github.com/repos/DominikSerafin/vuebar/tags","blobs_url":"https://api.github.com/repos/DominikSerafin/vuebar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DominikSerafin/vuebar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DominikSerafin/vuebar/git/refs{/sha}","trees_url":"https://api.github.com/repos/DominikSerafin/vuebar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DominikSerafin/vuebar/statuses/{sha}","languages_url":"https://api.github.com/repos/DominikSerafin/vuebar/languages","stargazers_url":"https://api.github.com/repos/DominikSerafin/vuebar/stargazers","contributors_url":"https://api.github.com/repos/DominikSerafin/vuebar/contributors","subscribers_url":"https://api.github.com/repos/DominikSerafin/vuebar/subscribers","subscription_url":"https://api.github.com/repos/DominikSerafin/vuebar/subscription","commits_url":"https://api.github.com/repos/DominikSerafin/vuebar/commits{/sha}","git_commits_url":"https://api.github.com/repos/DominikSerafin/vuebar/git/commits{/sha}","comments_url":"https://api.github.com/repos/DominikSerafin/vuebar/comments{/number}","issue_comment_url":"https://api.github.com/repos/DominikSerafin/vuebar/issues/comments{/number}","contents_url":"https://api.github.com/repos/DominikSerafin/vuebar/contents/{+path}","compare_url":"https://api.github.com/repos/DominikSerafin/vuebar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DominikSerafin/vuebar/merges","archive_url":"https://api.github.com/repos/DominikSerafin/vuebar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DominikSerafin/vuebar/downloads","issues_url":"https://api.github.com/repos/DominikSerafin/vuebar/issues{/number}","pulls_url":"https://api.github.com/repos/DominikSerafin/vuebar/pulls{/number}","milestones_url":"https://api.github.com/repos/DominikSerafin/vuebar/milestones{/number}","notifications_url":"https://api.github.com/repos/DominikSerafin/vuebar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DominikSerafin/vuebar/labels{/name}","releases_url":"https://api.github.com/repos/DominikSerafin/vuebar/releases{/id}","deployments_url":"https://api.github.com/repos/DominikSerafin/vuebar/deployments","created_at":"2017-03-03T12:20:43Z","updated_at":"2019-08-22T22:40:30Z","pushed_at":"2019-04-18T18:19:10Z","git_url":"git://github.com/DominikSerafin/vuebar.git","ssh_url":"git@github.com:DominikSerafin/vuebar.git","clone_url":"https://github.com/DominikSerafin/vuebar.git","svn_url":"https://github.com/DominikSerafin/vuebar","homepage":"https://github.serafin.io/vuebar/","size":701,"stargazers_count":591,"watchers_count":591,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":72,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":72,"open_issues":30,"watchers":591,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DominikSerafin/vuebar/pulls/83"},"html":{"href":"https://github.com/DominikSerafin/vuebar/pull/83"},"issue":{"href":"https://api.github.com/repos/DominikSerafin/vuebar/issues/83"},"comments":{"href":"https://api.github.com/repos/DominikSerafin/vuebar/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/DominikSerafin/vuebar/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/DominikSerafin/vuebar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DominikSerafin/vuebar/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/DominikSerafin/vuebar/statuses/32c6975f4ddf813d88b1ede13774e9ce4bef34fd"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":10,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"hyvyys"}}