GetScrollingPixelSize
Overview
Section titled “Overview”Gets the current scrolling distance in pixels for the specified PrismaView. This method allows you to retrieve the scroll sensitivity setting, which determines how much the view scrolls per mouse wheel increment.
Syntax
Section titled “Syntax”int GetScrollingPixelSize(PrismaView view);Parameters
Section titled “Parameters”view (required)
Section titled “view (required)”- Type:
PrismaView - Description: The
PrismaViewfrom which to get the scrolling distance
Return Value
Section titled “Return Value”- Type:
int - Returns: The current scrolling distance in pixels
Usage Examples
Section titled “Usage Examples”// Get current scroll sizeint scrollSize = PrismaUI->GetScrollingPixelSize(view);SKSE::log::info("Current scroll size: {} pixels", scrollSize);Best Practices
Section titled “Best Practices”- Context Awareness: Adjust scroll speed based on the type of content being displayed
- Settings Persistence: Save user scroll preferences for consistent experience
- Validation: Check the returned value to ensure it’s within expected ranges
- Performance: Cache scroll size values when making frequent adjustments