SetScrollingPixelSize
Overview
Section titled “Overview”Sets the scrolling distance in pixels for the specified PrismaView. This method allows you to customize how much the view scrolls per mouse wheel increment, enabling fine-tuned control over the scrolling experience.
Syntax
Section titled “Syntax”void SetScrollingPixelSize(PrismaView view, int pixelSize);Parameters
Section titled “Parameters”view (required)
Section titled “view (required)”- Type:
PrismaView - Description: The
PrismaViewfor which to set the scrolling distance
pixelSize (required)
Section titled “pixelSize (required)”- Type:
int - Description: The scrolling distance value in pixels
Return Value
Section titled “Return Value”This method returns void.
Usage Examples
Section titled “Usage Examples”// Set scroll speed to 30 pixels per wheel incrementPrismaUI->SetScrollingPixelSize(view, 30);SKSE::log::info("Scroll speed set to 30 pixels");Best Practices
Section titled “Best Practices”- Reasonable Values: Use scroll sizes between 10-100 pixels for optimal user experience
- Content Context: Adjust scroll speed based on the type of content being displayed
- User Control: Allow users to customize scroll speed through settings
- Consistency: Maintain consistent scroll behavior across similar UI elements