Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.
This repository was archived by the owner on Dec 27, 2025. It is now read-only.

无法滚动 #25

Description

@Pateo-yachuanhuang
  • (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent )event
    {
    UITouch
    touch = [touches anyObject];
    CGPoint originalLocation = [touch locationInView:self];
    originalLocation.x = 10;
    NSInteger pointId = [PTFakeMetaTouch fakeTouchId:[PTFakeMetaTouch getAvailablePointId] AtPoint:originalLocation withTouchPhase:UITouchPhaseBegan];
    [PTFakeMetaTouch fakeTouchId:pointId AtPoint:originalLocation withTouchPhase:UITouchPhaseBegan];
    }

  • (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent )event
    {
    UITouch
    touch = [touches anyObject];
    CGPoint originalLocation = [touch locationInView:self];
    originalLocation.x = 10;
    NSInteger pointId = [PTFakeMetaTouch fakeTouchId:[PTFakeMetaTouch getAvailablePointId] AtPoint:originalLocation withTouchPhase:UITouchPhaseMoved];
    [PTFakeMetaTouch fakeTouchId:pointId AtPoint:originalLocation withTouchPhase:UITouchPhaseMoved];
    }
    -(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent )event
    {
    UITouch
    touch = [touches anyObject];
    CGPoint originalLocation = [touch locationInView:self];
    originalLocation.x = 10;
    NSInteger pointId = [PTFakeMetaTouch fakeTouchId:[PTFakeMetaTouch getAvailablePointId] AtPoint:originalLocation withTouchPhase:UITouchPhaseEnded];
    [PTFakeMetaTouch fakeTouchId:pointId AtPoint:originalLocation withTouchPhase:UITouchPhaseEnded];
    }

左边的列表无法滚动。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions