Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Bug/timeline icon#72

Open
ffigueroal wants to merge 2 commits intomainfrom
bug/timeline-icon
Open

Bug/timeline icon#72
ffigueroal wants to merge 2 commits intomainfrom
bug/timeline-icon

Conversation

@ffigueroal
Copy link
Contributor

We found that the play/pause button icons were not working properly on Android devices. We tried to modify them, and we fixed it for Android, but stopped working on iPhone (replaced by emoji).

When trying to override it, we found that the _timerPlay boolean was not externally accessible, so we modified the playButtonConfig to bind the text function.

Seba will try to fix the problem for the different OS, but for now he needs this change to override it in DataSaudi.

Copy link
Member

@davelandry davelandry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I see what you're doing here. We need to give access all of the config methods access to this if they are named functions.

Unfortunately, this new logic here will fail if playButtonConfig.text is set to a String (we can only bind with Functions).

That's why we have configPrep! It's a function exported by d3plus-common that, among other things, will bind this to all Function config methods. Check it out:

import {configPrep} from "d3plus-common";
.config(configPrep.bind(this)(this._playButtonConfig))

Take that for a test run, and let me know if that doesn't work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants