mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-01-11 20:10:26 +00:00
Add - Added **Include Crunchyroll Artists (Music)** in history to settings for expanded tracking Add - Added **filters to history tab** to hide series or artists for a cleaner view Add - Added a **toggle to include featured music** in series search results Chg - Made small changes to **sync timing** to more accurately detect delays Chg - Migrated settings to json file Fix - Fixed a **sync timing issue** with longer comparison videos to ensure proper synchronization Fix - Fixed issues with artist urls
30 lines
No EOL
1.1 KiB
C#
30 lines
No EOL
1.1 KiB
C#
using Avalonia.Controls;
|
|
using CRD.Utils.Structs;
|
|
using CRD.ViewModels;
|
|
|
|
namespace CRD.Views;
|
|
|
|
public partial class UpcomingPageView : UserControl{
|
|
public UpcomingPageView(){
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void SelectionChanged(object? sender, SelectionChangedEventArgs e){
|
|
if (DataContext is UpcomingPageViewModel viewModel && sender is ListBox listBox){
|
|
viewModel.SelectionChangedOfSeries((AnilistSeries?)listBox.SelectedItem);
|
|
}
|
|
}
|
|
|
|
private void ScrollViewer_PointerWheelChanged(object sender, Avalonia.Input.PointerWheelEventArgs e){
|
|
if (sender is ScrollViewer scrollViewer){
|
|
// Determine if the ListBox is at its bounds (top or bottom)
|
|
bool atTop = scrollViewer.Offset.Y <= 0 && e.Delta.Y > 0;
|
|
bool atBottom = scrollViewer.Offset.Y >= scrollViewer.Extent.Height - scrollViewer.Viewport.Height && e.Delta.Y < 0;
|
|
|
|
if (atTop || atBottom){
|
|
e.Handled = true; // Stop the event from propagating to the parent
|
|
}
|
|
}
|
|
}
|
|
|
|
} |