Skip to content

Scroll view scrolls the page despite the page has an overlay(backdrop) using AbsoluteLayout.  #8600

@ravikumarmistry

Description

@ravikumarmistry

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.5.0
  • Cross-platform modules: 6.5.0
  • Android Runtime: 6.5.0
  • iOS Runtime:
  • Plugin(s):
"dependencies": {
    "@angular/animations": "~8.2.0",
    "@angular/common": "~8.2.0",
    "@angular/compiler": "~8.2.0",
    "@angular/core": "~8.2.0",
    "@angular/forms": "~8.2.0",
    "@angular/platform-browser": "~8.2.0",
    "@angular/platform-browser-dynamic": "~8.2.0",
    "@angular/router": "~8.2.0",
    "@danvick/ngx-translate-nativescript-loader": "^2.0.0",
    "@nativescript/theme": "~2.3.3",
    "@ngx-translate/core": "^12.1.2",
    "@ngx-translate/http-loader": "^4.0.0",
    "nativescript-angular": "~8.21.0",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.4.0",
    "tns-core-modules": "~6.5.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~8.2.0",
    "@ngtools/webpack": "~8.2.0",
    "codelyzer": "~4.5.0",
    "nativescript-dev-webpack": "~1.5.1",
    "node-sass": "^4.7.1",
    "tslint": "~5.19.0",
    "typescript": "~3.5.3"
  }

Describe the bug
I wanted to create a modal which has a backdrop which overlays the main page. Main page has a scrollView. When I open the model overlay covers the scroll view but if user scrolls on the overlay the scroll view scrolls.

To Reproduce
Here is the link to reproduce it https://play.nativescript.org/?template=play-ng&id=YOMVFC&v=2

  1. open the playground app on mobile.
  2. Click the open modal button.
  3. Scroll inside the body of opened modal.

Expected behavior
Scroll view should not scroll as page has an over lay and modal which is covering scroll view.Also, the scroll gesture event should not propagate to the bottom layer.

Sample project
Playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions