bug(mat-slider): on Firefox, slider thumb is not aligned with cursor

未關閉 適合新手
#34,094 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@Devyalamaddi 已經在處理了。

開始於 2026年11月10日。

  • #34106 來自 @Devyalamaddi —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
62/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
angular, typescript
領域
frontend

研究方向

從 Material slider 的實作及其拖曳位置處理開始,接著檢查 slider 測試是否涵蓋指標對齊。使用 issue 中連結的 slider 概覽,在 Firefox 中重現回報的行為。當滑塊在軌道兩端附近都能與游標保持對齊,且相關測試通過時,即完成。

由索引模型根據 Issue 內容生成。

描述

area: material/slider P4
Is this a regression?
  • Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was

No response

Description

On Firefox, when clicking and dragging on a slider, the slider thumb is not aligned with the cursor. This is most visible near the ends of the slider track.

Reproduction

https://material.angular.dev/components/slider/overview

Expected Behavior

The thumb stays aligned with the cursor.

Actual Behavior

The thumb is closer to the center of the track than the cursor is.

https://github.com/user-attachments/assets/09e954c3-e949-428d-a595-ea804a9b1c66

Environment
  • Angular: 22.2.4
  • CDK/Material: 22.2.6
  • Browser(s): Firefox 159.0.1
  • Operating System: Windows
主要語言
TypeScript
星號
25k
分支
6.9k
平均合併
2 天 7 小時
30 天內合併 PR
83

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

angular/components 的其他 Issue

查看 angular/components 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。