Merge v0.9.0 (#730)

v0.9.0
This commit is contained in:
DC
2016-07-21 15:52:54 -07:00
committed by GitHub
5 changed files with 20 additions and 3 deletions

View File

@@ -25,5 +25,6 @@
- anonymlol <anonymlol7@gmail.com>
- Gediminas Petrikas <gedas18@gmail.com>
- Adam Gotlib <gotlib.adam+dev@gmail.com>
- Rémi Jouannet <remijouannet@gmail.com>
#### Generated by bin/update-authors.sh.

View File

@@ -1,5 +1,20 @@
# WebTorrent Desktop Version History
## v0.9.0 - 2016-07-20
### Added
- Save selected subtitles
- Ask for confirmation before deleting torrents
- Support Debian Jessie
### Changed
- Only send telemetry in production
- Clean up the code. Split main.js, refactor lots of things
### Fixed
- Fix state.playing.jumpToTime behavior
- Remove torrent file and poster image when deleting a torrent
## v0.8.1 - 2016-06-24
### Added

View File

@@ -1,7 +1,7 @@
{
"name": "webtorrent-desktop",
"description": "WebTorrent, the streaming torrent client. For OS X, Windows, and Linux.",
"version": "0.8.1",
"version": "0.9.0",
"author": {
"name": "WebTorrent, LLC",
"email": "feross@webtorrent.io",

View File

@@ -54,8 +54,8 @@ module.exports = class PlaybackController {
// force rerendering if window is hidden,
// in order to bypass `raf` and play/pause media immediately
if (!state.window.isVisible) {
var mediaTag = document.querySelector('video,audio')
var mediaTag = document.querySelector('video,audio')
if (!state.window.isVisible && mediaTag) {
if (state.playing.isPaused) mediaTag.play()
else mediaTag.pause()
}

View File

@@ -524,6 +524,7 @@ function renderPlayerControls (state) {
// Handles a click or drag to scrub (jump to another position in the video)
function handleScrub (e) {
if (!e.clientX) return
dispatch('mediaMouseMoved')
var windowWidth = document.querySelector('body').clientWidth
var fraction = e.clientX / windowWidth