{"action":"created","issue":{"url":"https://api.github.com/repos/pricelinelabs/omni-slider/issues/30","repository_url":"https://api.github.com/repos/pricelinelabs/omni-slider","labels_url":"https://api.github.com/repos/pricelinelabs/omni-slider/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/pricelinelabs/omni-slider/issues/30/comments","events_url":"https://api.github.com/repos/pricelinelabs/omni-slider/issues/30/events","html_url":"https://github.com/pricelinelabs/omni-slider/issues/30","id":367138882,"node_id":"MDU6SXNzdWUzNjcxMzg4ODI=","number":30,"title":"slider init with 0 issue","user":{"login":"rootten","id":6560477,"node_id":"MDQ6VXNlcjY1NjA0Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/6560477?v=4","gravatar_id":"","url":"https://api.github.com/users/rootten","html_url":"https://github.com/rootten","followers_url":"https://api.github.com/users/rootten/followers","following_url":"https://api.github.com/users/rootten/following{/other_user}","gists_url":"https://api.github.com/users/rootten/gists{/gist_id}","starred_url":"https://api.github.com/users/rootten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootten/subscriptions","organizations_url":"https://api.github.com/users/rootten/orgs","repos_url":"https://api.github.com/users/rootten/repos","events_url":"https://api.github.com/users/rootten/events{/privacy}","received_events_url":"https://api.github.com/users/rootten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-05T09:52:06Z","updated_at":"2018-10-05T11:13:34Z","closed_at":null,"author_association":"NONE","body":"there is an issue with how the slider is initialized\r\n\r\nlet say that I want to initialize it with the following:\r\n\r\n`\r\n{\r\n      min: 0,\r\n      max: 2018,\r\n      start: 0,\r\n      end: 0,\r\n      overlap: true\r\n};\r\n`\r\n\r\nto have right and left handles set to min.\r\n\r\nwith the following snippet taken from init method that's not possible:\r\n\r\n`\r\n// Default start/end\r\nthis.options.start = this.options.start || this.options.min;\r\nthis.options.end = this.options.end || this.options.max;\r\n`\r\nthis will set this.options start to 0 and end to 2018"},"comment":{"url":"https://api.github.com/repos/pricelinelabs/omni-slider/issues/comments/427329770","html_url":"https://github.com/pricelinelabs/omni-slider/issues/30#issuecomment-427329770","issue_url":"https://api.github.com/repos/pricelinelabs/omni-slider/issues/30","id":427329770,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzMyOTc3MA==","user":{"login":"rootten","id":6560477,"node_id":"MDQ6VXNlcjY1NjA0Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/6560477?v=4","gravatar_id":"","url":"https://api.github.com/users/rootten","html_url":"https://github.com/rootten","followers_url":"https://api.github.com/users/rootten/followers","following_url":"https://api.github.com/users/rootten/following{/other_user}","gists_url":"https://api.github.com/users/rootten/gists{/gist_id}","starred_url":"https://api.github.com/users/rootten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootten/subscriptions","organizations_url":"https://api.github.com/users/rootten/orgs","repos_url":"https://api.github.com/users/rootten/repos","events_url":"https://api.github.com/users/rootten/events{/privacy}","received_events_url":"https://api.github.com/users/rootten/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T11:13:34Z","updated_at":"2018-10-05T11:13:34Z","author_association":"NONE","body":"the same is true with 'move' method\r\n\r\nwhat if I would like to move hadle to 0?\r\n\r\nI cant because of this check:\r\n\r\nif (importedData.right) {\r\n          if (importedData.right < this.options.min) importedData.right = this.options.min;\r\n          if (importedData.right > this.options.max) importedData.right = this.options.max;\r\n\r\n          var posRight = (this.options.max - importedData.right) / total * 100;\r\n          this.UI.handleRight.style.right = posRight + '%';\r\n          this.UI.fill.style.right = posRight + '%';\r\n        }"}}
{"actor":{"display_login":"rootten"}}