Improves edge scroll and drag handling
Increases edge scrolling speed for improved user experience. Refactors header drag event handling to use handler methods for better organization.
This commit is contained in:
parent
5f4a7fa9b1
commit
5b0ae0ca5c
2 changed files with 42 additions and 40 deletions
|
|
@ -22,8 +22,8 @@ export class EdgeScrollManager {
|
|||
// Constants - fixed values as per requirements
|
||||
private readonly OUTER_ZONE = 100; // px from edge (slow zone)
|
||||
private readonly INNER_ZONE = 50; // px from edge (fast zone)
|
||||
private readonly SLOW_SPEED_PXS = 80; // px/sec in outer zone
|
||||
private readonly FAST_SPEED_PXS = 240; // px/sec in inner zone
|
||||
private readonly SLOW_SPEED_PXS = 140; // px/sec in outer zone
|
||||
private readonly FAST_SPEED_PXS = 640; // px/sec in inner zone
|
||||
|
||||
constructor(private eventBus: IEventBus) {
|
||||
this.init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue