Skip to content

GetScrollingPixelSize

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.

int GetScrollingPixelSize(PrismaView view);
  • Type: PrismaView
  • Description: The PrismaView from which to get the scrolling distance
  • Type: int
  • Returns: The current scrolling distance in pixels
// Get current scroll size
int scrollSize = PrismaUI->GetScrollingPixelSize(view);
logger::info("Current scroll size: {} pixels", scrollSize);
  • 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