Skip to content

Commit

Permalink
[5.5.3] Fix bugs: devmode, lyric-sync issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kirainmoe committed Oct 29, 2017
1 parent 49075bd commit cc96234
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/assets/muse-player.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion dist/example.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "muse-player",
"version": "5.5.2",
"version": "5.5.3",
"description": "Just a simple and dilligent HTML5 Audio Player written in React.",
"main": "dist/assets/muse-player.js",
"scripts": {
Expand Down Expand Up @@ -96,4 +96,4 @@
"stylus": "^0.54.5",
"typescript": "^2.5.3"
}
}
}
2 changes: 1 addition & 1 deletion src/config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

// Settings configured here will be merged into the final config object.
export default {
MUSE_VERSION: '5.5.2'
MUSE_VERSION: '5.5.3'
}
1 change: 1 addition & 0 deletions src/containers/DrawerContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export default class DrawerContainer extends React.Component<DrawerContainerProp

/* Todo: optimize the complexity */
if (
(index === refs.length - 2 && current > refs[index + 1].props.timeline) ||
index + 1 < refs.length &&
current > refs[index + 1].props.timeline &&
index + 2 < refs.length &&
Expand Down
8 changes: 8 additions & 0 deletions src/containers/MenuContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ export default class MenuContainer extends React.Component<MenuContainerProps> {
'contextmenu',
parent.onPlayerContextMenu
);
parent.player.removeEventListener(
'touchstart',
parent.onMobileTouchStart
);
parent.player.removeEventListener(
'touchend',
parent.onMobileTouchEnd
);
}
};

Expand Down
10 changes: 9 additions & 1 deletion src/example.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc96234

Please sign in to comment.