Skip to content

Commit e90643c

Browse files
committed
fix(portifolio) fix video reproduction double click
1 parent c93b020 commit e90643c

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

libs/route-pages/ashes-page/src/lib/ashes-page.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ <h1 class="main-title">Feedback</h1>
201201
</div>
202202
</section>
203203

204-
<div *ngIf="project.video" class="container cursor-pointer" (click)="activateFrame()">
204+
<div class="container cursor-pointer">
205205
<iframe [src]="getSafeUrl(project.video)" style=" width: 100%; height:80vh;" allowfullscreen
206-
[style.pointer-events]="isFrameActive ? 'auto' : 'none'"></iframe>
206+
allow="autoplay"></iframe>
207207
</div>
208208

209209
<next-project></next-project>

libs/route-pages/ashes-page/src/lib/ashes-page.component.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ export class AshesPageComponent {
4343

4444
project$: Observable<AshesPortfolio> = this.getProjectsServ.getPortfolioRequest(ROUTE);
4545

46-
isFrameActive = false;
47-
4846
technologiesCard: ITechnologiesCard[] = [
4947
{
5048
smJustify: "between",
@@ -109,13 +107,6 @@ export class AshesPageComponent {
109107
this.cdr.detectChanges();
110108
}
111109

112-
activateFrame() {
113-
// start from inactive iframe to allow scrolling over iframe
114-
if (!this.isFrameActive) {
115-
this.isFrameActive = true;
116-
}
117-
}
118-
119110
getSafeUrl(url?: string) {
120111
if (!url) {
121112
return '';

0 commit comments

Comments
 (0)