Giter VIP home page Giter VIP logo

Comments (2)

naveedgol avatar naveedgol commented on July 26, 2024

This is happening because in track-controls.component.html when <div class="misc-controls" *ngIf="!isMobile"> is removed and renters the DOM as a result of isMobile toggling, the default value of 10 (see below) is applied to the volume slider. When you toggle mute you can observe the accurate volume reflected.

<mat-slider
      #volume
      class="volume-slider"
      min="0"
      max="10"
      step=".1"
      value="10"
      (input)="changeVolume($event.value)"
    >
</mat-slider>

from music-web-player.

Vertana avatar Vertana commented on July 26, 2024

I see why it’s happening, but I’m not the best at JS. I’m sure Angular has a global resize event, maybe just make the element read lastVolume on that? Would that override the html? Or maybe just take out the value assignment in html all together and set default value once in JavaScript on initialization? I’m not sure what the best answer is here.

from music-web-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.