Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(HorizontalScroll): fix prevent page scrolling #8177

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

EldarMuhamethanov
Copy link
Contributor


  • Unit-тесты
  • Release notes

Изменения

Перенес подписку события из нативного обработчика в подписку через addEventListener. Добавил preventDefault события при scrollOnAnyWheel

Release notes

Исправления

  • HorizontalScroll: Поправлена остановка всплытия события onwheel при прокидывании scrollOnAnyWheel

@EldarMuhamethanov EldarMuhamethanov self-assigned this Jan 23, 2025
@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner January 23, 2025 13:22
@EldarMuhamethanov EldarMuhamethanov removed their assignment Jan 23, 2025
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jan 23, 2025
Copy link

codesandbox-ci bot commented Jan 23, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

github-actions bot commented Jan 23, 2025

size-limit report 📦

Path Size
JS 392.58 KB (+0.03% 🔺)
JS (gzip) 119.05 KB (+0.02% 🔺)
JS (brotli) 97.95 KB (+0.01% 🔺)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 344.21 KB (0%)
CSS (gzip) 42.66 KB (0%)
CSS (brotli) 33.99 KB (0%)

Copy link
Contributor

github-actions bot commented Jan 23, 2025

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Jan 23, 2025

👀 Docs deployed

Commit 8b7971b

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.48%. Comparing base (fda620d) to head (8b7971b).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...c/components/HorizontalScroll/HorizontalScroll.tsx 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8177      +/-   ##
==========================================
- Coverage   95.49%   95.48%   -0.01%     
==========================================
  Files         403      403              
  Lines       11457    11459       +2     
  Branches     3783     3786       +3     
==========================================
+ Hits        10941    10942       +1     
- Misses        516      517       +1     
Flag Coverage Δ
unittests 95.48% <93.33%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

inomdzhon
inomdzhon previously approved these changes Jan 23, 2025
BlackySoul
BlackySoul previously approved these changes Jan 24, 2025
@EldarMuhamethanov EldarMuhamethanov merged commit f312d39 into master Jan 24, 2025
28 of 29 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/8176/fix-scroll-on-any-wheel branch January 24, 2025 12:37
vkcom-publisher pushed a commit that referenced this pull request Jan 24, 2025
* fix(HorizontalScroll): fix prevent page scrolling

* fix(HorizontalScroll): remove useEventListener hook using

* fix(HorizontalScroll): fix removeEventListener options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча
Projects
None yet
3 participants