Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-slides

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-slides - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

2

nativescript-slides.d.ts

@@ -48,3 +48,3 @@ import { AbsoluteLayout } from 'ui/layouts/absolute-layout';

goToSlide(index: number): void;
private applySwipe(pageWidth);
applySwipe(pageWidth: number): void;
private showRightSlide(panelMap, offset?, endingVelocity?);

@@ -51,0 +51,0 @@ private showLeftSlide(panelMap, offset?, endingVelocity?);

@@ -303,3 +303,3 @@ require("nativescript-dom");

private applySwipe(pageWidth: number): void {
public applySwipe(pageWidth: number): void {
let previousDelta = -1; //hack to get around ios firing pan event after release

@@ -306,0 +306,0 @@ let endingVelocity = 0;

{
"name": "nativescript-slides",
"version": "2.1.5",
"version": "2.1.6",
"description": "NativeScript Slides plugin.",

@@ -5,0 +5,0 @@ "main": "nativescript-slides.js",

@@ -139,2 +139,3 @@ # NativeScript Slides for iOS and Android

* There appears to be a bug with the loop resulting in bad transitions going right to left.
* Currently in Android there is an known issue when a slide component inside of a scroll view.

@@ -176,43 +177,3 @@ #### How To: Load slides dynamically

#### Smoother panning on Android (For {N} v2.0.0 and below __only__).
To achieve a much smoother drag on android simply go into the gestures.android.js file in the tns-core-modules here
`/node_modules/tns-core-modules/ui/gestures/gestures.android.js`
and change
```javascript
CustomPanGestureDetector.prototype.getMotionEventCenter = function (event) {
var count = event.getPointerCount();
var res = { x: 0, y: 0 };
for (var i = 0; i < count; i++) {
res.x += event.getX(i);
res.y += event.getY(i);
}
res.x /= (count * this.density);
res.y /= (count * this.density);
return res;
};
```
to
```javascript
CustomPanGestureDetector.prototype.getMotionEventCenter = function (event) {
var count = event.getPointerCount();
var res = { x: 0, y: 0 };
for (var i = 0; i < count; i++) {
res.x += event.getRawX();
res.y += event.getRawY();
}
res.x /= (count * this.density);
res.y /= (count * this.density);
return res;
};
```
_please note this will change the panning gesture for your entire project._
### Thanks to these awesome contributors!

@@ -228,2 +189,8 @@

[Leo Caseiro](https://github.com/leocaseiro)
[Todd Anglin](https://github.com/toddanglin)
[Andrew Lo](https://github.com/andrewlo)
And thanks to [Nathan Walker](https://github.com/NathanWalker) for setting up the {N} plugin seed that was used to help get this plugin up and running. More info can be found about it here:

@@ -230,0 +197,0 @@ https://github.com/NathanWalker/nativescript-plugin-seed

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc