Skip to content

Commit

Permalink
fix(ui): Use pointertap method for tos and privacy policies
Browse files Browse the repository at this point in the history
  • Loading branch information
CaedenPH committed Apr 2, 2024
1 parent b8de5bb commit 32c7c6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/routes/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,23 @@ export class StartPage {
this.container.addChild(testNowContainer);

// Privacy policies
const privacyPoliciesText = this.createText("View our pivacy policies", this.app.screen.width * 0.5, this.app.screen.height * 0.84, 20, {wordWrap: true});
const privacyPoliciesText = this.createText("View our pivacy policies", this.app.screen.width * 0.5, this.app.screen.height * 0.87, 21, {wordWrap: true});
privacyPoliciesText.eventMode = "dynamic";
// privacyPoliciesText.
privacyPoliciesText.on('pointerdown', () => {
privacyPoliciesText.on('pointertap', () => {
window.open("https://www.graymattermetrics.com/privacy-policy-2/")
});

// Terms of service
const tosText = this.createText("View our TOS", this.app.screen.width * 0.5, this.app.screen.height * 0.89, 20, {wordWrap: true});
const tosText = this.createText("View our TOS", this.app.screen.width * 0.5, this.app.screen.height * 0.93, 21, {wordWrap: true});
tosText.eventMode = "dynamic";
// privacyPoliciesText.
tosText.on('pointerdown', () => {
tosText.on('pointertap', () => {
window.open("http://www.graymattermetrics.com/terms-conditions/");
});

// Version text
this.createText(`Version ${this.config.version}`, this.app.screen.width * 0.5, this.app.screen.height * 0.97, 11, {wordWrap: true});
this.createText(`Version ${this.config.version}`, this.app.screen.width * 0.5, this.app.screen.height * 0.02, 11, {wordWrap: true});

await this.waitForKeyPress(testNowContainer);
}
Expand Down

0 comments on commit 32c7c6b

Please sign in to comment.