Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Fixes #562 Highlight when playing #564

Merged
merged 2 commits into from
Jan 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/containers/Surah/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ class Surah extends Component {
this.props.isLoading !== nextProps.isLoading,
this.props.isLoaded !== nextProps.isLoaded,
this.props.options !== nextProps.options,
this.props.currentAyah !== nextProps.currentAyah
this.props.currentAyah !== nextProps.currentAyah,
this.props.isPlaying !== nextProps.isPlaying
];

return conditions.some(condition => condition);
Expand Down Expand Up @@ -300,7 +301,7 @@ class Surah extends Component {
return Object.values(ayahs).map(ayah => (
<Ayah
ayah={ayah}
isCurrentAyah={ayah.ayahKey === currentAyah}
isCurrentAyah={isPlaying && ayah.ayahKey === currentAyah}
bookmarked={!!bookmarks[ayah.ayahKey]}
tooltip={options.tooltip}
bookmarkActions={actions.bookmark}
Expand Down