scania-digital-design-system / tegel

Tegel Design System
https://tegel.scania.com
MIT License
19 stars 14 forks source link

[Bug report]: <tds-slider/> component non-responsive on touchscreen devices #812

Open acivgin opened 1 week ago

acivgin commented 1 week ago

Requirements before reporting

Package versions

@scania/tegel: "1.17.0"

Browser

Chrome

Framework

Angular

Version

Angular 15.4.0.

Reproduction steps

  1. Open the application on a touchscreen device (e.g., mobile or tablet).
  2. Navigate to a page containing the component.
  3. Attempt to adjust the slider using touch gestures (swipe or tap).
  4. Observe that the slider does not respond to any touch interactions.

When users attempt to interact with the component on touch-enabled devices, it does not respond to touch gestures, such as swiping or tapping, to adjust the slider value. NOTE: minus and plus buttons work as expected

Code example

  <div id="quantity-slider">
          <tds-slider
            #slider
            ngDefaultControl
            formControlName="quantity"
            [max]="maxQuantity"
            [min]="minQuantity"
            step="1"
            [value]="actualQuantity"
            tooltip
            controls
            thumb-size="lg"
            >
          </tds-slider>
        </div>

Screenshots

image (5)

Expected behaviour

The component should respond to standard touch interactions, allowing users to adjust the slider on touchscreen devices, similar to how it behaves on non-touchscreen (desktop) environments.

Console errors

"Unable to preventDefault inside passive event listener invocation."

Contact information

adis.civgin@scania.com

Lunkan89 commented 1 day ago

@acivgin I have trouble recreating this issue, is it possible for you to create a StackBlitz ?