Skip to content

Commit cc96234

Browse files
committed
[5.5.3] Fix bugs: devmode, lyric-sync issues
1 parent 49075bd commit cc96234

7 files changed

Lines changed: 31 additions & 6 deletions

File tree

dist/assets/muse-player.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/example.js

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "muse-player",
3-
"version": "5.5.2",
3+
"version": "5.5.3",
44
"description": "Just a simple and dilligent HTML5 Audio Player written in React.",
55
"main": "dist/assets/muse-player.js",
66
"scripts": {
@@ -96,4 +96,4 @@
9696
"stylus": "^0.54.5",
9797
"typescript": "^2.5.3"
9898
}
99-
}
99+
}

src/config/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
// Settings configured here will be merged into the final config object.
44
export default {
5-
MUSE_VERSION: '5.5.2'
5+
MUSE_VERSION: '5.5.3'
66
}

src/containers/DrawerContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ export default class DrawerContainer extends React.Component<DrawerContainerProp
191191

192192
/* Todo: optimize the complexity */
193193
if (
194+
(index === refs.length - 2 && current > refs[index + 1].props.timeline) ||
194195
index + 1 < refs.length &&
195196
current > refs[index + 1].props.timeline &&
196197
index + 2 < refs.length &&

src/containers/MenuContainer.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ export default class MenuContainer extends React.Component<MenuContainerProps> {
132132
'contextmenu',
133133
parent.onPlayerContextMenu
134134
);
135+
parent.player.removeEventListener(
136+
'touchstart',
137+
parent.onMobileTouchStart
138+
);
139+
parent.player.removeEventListener(
140+
'touchend',
141+
parent.onMobileTouchEnd
142+
);
135143
}
136144
};
137145

src/example.js

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)