From b66ef806e5ff8e1efcf07a82efa8f450af1225a9 Mon Sep 17 00:00:00 2001 From: Cavitt Date: Wed, 25 Jun 2014 17:27:56 -0700 Subject: [PATCH] Exposed the vertical option for slider controls. closes #1303 --- CHANGELOG.md | 1 + src/js/slider.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10046d850..d16d556dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ CHANGELOG * Fixed issues around webvtt cue time parsing. Fixed #877, fixed #183. ([view](https://github.com/videojs/video.js/pull/1236)) * Fixed an IE11 issue where clicking on the video wouldn't show the controls ([view](https://github.com/videojs/video.js/pull/1291)) * Added a composer.json for PHP packages ([view](https://github.com/videojs/video.js/pull/1241)) +* Exposed the vertical option for slider controls ([view](https://github.com/videojs/video.js/pull/1303)) -------------------- diff --git a/src/js/slider.js b/src/js/slider.js index cc3654f84..30f355444 100644 --- a/src/js/slider.js +++ b/src/js/slider.js @@ -128,7 +128,7 @@ vjs.Slider.prototype.calculateDistance = function(event){ boxW = boxH = el.offsetWidth; handle = this.handle; - if (this.options_.vertical) { + if (this.options()['vertical']) { boxY = box.top; if (event.changedTouches) {