mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Correct interception state assertion logic
The previous VERIFY statement incorrectly asserted that the interception state was not "committed" or "scrolled". Updated the condition to ensure the interception state is either "committed" or "scrolled" as intended.
This commit is contained in:
parent
fa02d94d30
commit
d6466da4db
|
|
@ -204,7 +204,7 @@ void NavigateEvent::process_scroll_behavior()
|
|||
void NavigateEvent::potentially_process_scroll_behavior()
|
||||
{
|
||||
// 1. Assert: event's interception state is "committed" or "scrolled".
|
||||
VERIFY(m_interception_state != InterceptionState::Committed && m_interception_state != InterceptionState::Scrolled);
|
||||
VERIFY(m_interception_state == InterceptionState::Committed || m_interception_state == InterceptionState::Scrolled);
|
||||
|
||||
// 2. If event's interception state is "scrolled", then return.
|
||||
if (m_interception_state == InterceptionState::Scrolled)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user